FIX: buffer for displaying peername was not cleared
authorChristian Thaeter <ct@pipapo.org>
Tue, 30 Oct 2007 22:42:54 +0000 (23:42 +0100)
committerChristian Thaeter <ct@pipapo.org>
Tue, 30 Oct 2007 22:42:54 +0000 (23:42 +0100)
src/rxpd_socket.c

index 4f81960..166bcf4 100644 (file)
@@ -149,6 +149,7 @@ rxpd_socket_accept (void* ptr)
       struct rxpd_connection* conn = rxpd_connection_new (self, fd);
 
       char buf[512];
+      *buf = '\0';
 
       if (rxpd_socket_tcp4addr (conn, buf, "", 511))
         {