--- deliantra/server/socket/init.C 2006/12/13 02:55:51 1.11 +++ deliantra/server/socket/init.C 2006/12/14 00:01:35 1.12 @@ -112,13 +112,12 @@ * duplicating (not likely in normal cases, but malicous attacks that * just open and close connections could get this total up. */ - ns->inbuf.len = 0; - ns->inbuf.buf = (unsigned char *) malloc (sizeof (unsigned char) * MAXSOCKBUF); + ns->inbuf_len = 0; + /* Basic initialization. Needed because we do a check in * HandleClient for oldsocketmode without checking the * length of data. */ - memset (ns->inbuf.buf, 0, sizeof (unsigned char) * MAXSOCKBUF); memset (&ns->lastmap, 0, sizeof (struct Map)); memset (ns->faces_sent, 0, ns->faces_sent_len * sizeof (*ns->faces_sent)); memset (&ns->anims_sent, 0, sizeof (ns->anims_sent)); @@ -265,7 +264,6 @@ free (ns->stats.title); free (ns->host); - free (ns->inbuf.buf); } /** Sends the 'goodbye' command to the player, and closes connection. */