loudmouth/lm-connection.c
changeset 180 2694ed676a99
parent 178 260d6853b457
child 181 98466947c78b
--- a/loudmouth/lm-connection.c	Thu Sep 14 20:05:57 2006 +0000
+++ b/loudmouth/lm-connection.c	Thu Sep 21 11:31:39 2006 +0000
@@ -24,7 +24,6 @@
 #include <sys/stat.h> 
 #include <sys/types.h>
 #include <fcntl.h>
-#include <errno.h>
 
 #include <glib.h>
 
@@ -521,6 +520,7 @@
 	fd = g_io_channel_unix_get_fd (source);
 	
 	if (condition == G_IO_ERR) {
+		len = sizeof (err);
 		_lm_sock_get_error (fd, &err, &len);
 		if (!_lm_sock_is_blocking_error (err)) {
 			g_log (LM_LOG_DOMAIN, LM_LOG_LEVEL_NET,