]> git.meshlink.io Git - meshlink/blobdiff - src/connection.c
Fix printf format bug.
[meshlink] / src / connection.c
index c1acfeab1c4cbafc4cbe8dbc5e14d1ebc8dd91b7..8164cb4bba029aad06c9b32ba97f38cfc53a427e 100644 (file)
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id: connection.c,v 1.1.2.10 2001/03/04 13:59:25 guus Exp $
+    $Id: connection.c,v 1.1.2.12 2001/06/29 13:09:55 guus Exp $
 */
 
 #include "config.h"
 
 #include <stdio.h>
 #include <syslog.h>
+#include <string.h>
 
 #include <avl_tree.h>
 #include <list.h>
@@ -88,7 +89,7 @@ void free_connection(connection_t *p)
 cp
   if(p->queue)
     list_delete_list(p->queue);
-  if(p->name && p->name!=unknown)
+  if(p->name)
     free(p->name);
   if(p->hostname)
     free(p->hostname);