diff svr-session.c @ 6:ab00ef513e97

Sorted out the first channel init issues.
author Matt Johnston <matt@ucc.asn.au>
date Tue, 01 Jun 2004 10:48:46 +0000
parents bc6477a6c393
children 425ed5c20157
line wrap: on
line diff
--- a/svr-session.c	Tue Jun 01 04:20:12 2004 +0000
+++ b/svr-session.c	Tue Jun 01 10:48:46 2004 +0000
@@ -40,6 +40,12 @@
 
 struct serversession svr_ses;
 
+const struct ChanType *chantypes[] = {
+	&svrchansess,
+	NULL /* Null termination is mandatory. */
+};
+
+
 void svr_session(int sock, runopts *opts, int childpipe, 
 		struct sockaddr* remoteaddr) {
 
@@ -56,6 +62,7 @@
 	/* Initialise server specific parts of the session */
 	svr_ses.childpipe = childpipe;
 	authinitialise();
+	chaninitialise(chantypes);
 	svr_chansessinitialise();
 
 	if (gettimeofday(&timeout, 0) < 0) {