$Log$
+ Revision 605.20 2003/03/17 04:03:14 ajc
+ * Supply a NULL argument as the second argument to accept() instead of an
+ empty buffer whose contents we never even look at.
+
Revision 605.19 2003/03/16 05:07:12 ajc
* Fixed the bug that caused freebusy publishes to crash.
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
int retval;
struct CitContext *con= NULL; /* Temporary context pointer */
struct ServiceFunctionHook *serviceptr;
- struct sockaddr_in fsin; /* Data for master socket */
- int alen; /* Data for master socket */
int ssock; /* Descriptor for client socket */
struct timeval tv;
serviceptr = serviceptr->next ) {
if (FD_ISSET(serviceptr->msock, &readfds)) {
- alen = sizeof fsin;
- ssock = accept(serviceptr->msock,
- (struct sockaddr *)&fsin, &alen);
+ ssock = accept(serviceptr->msock, NULL, 0);
if (ssock < 0) {
lprintf(2, "citserver: accept(): %s\n",
strerror(errno));