[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r11777 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r11777 - gnunet/src/transport |
Date: |
Thu, 17 Jun 2010 09:49:10 +0200 |
Author: wachs
Date: 2010-06-17 09:49:10 +0200 (Thu, 17 Jun 2010)
New Revision: 11777
Modified:
gnunet/src/transport/plugin_transport_http.c
Log:
Modified: gnunet/src/transport/plugin_transport_http.c
===================================================================
--- gnunet/src/transport/plugin_transport_http.c 2010-06-17 07:45:45 UTC
(rev 11776)
+++ gnunet/src/transport/plugin_transport_http.c 2010-06-17 07:49:10 UTC
(rev 11777)
@@ -626,9 +626,13 @@
tmp = GNUNET_malloc (INET6_ADDRSTRLEN + 14);
inet_ntop(AF_INET6, &((struct sockaddr_in6 *)
cs->addr_inbound)->sin6_addr,address,INET6_ADDRSTRLEN);
GNUNET_asprintf(&tmp,"[%s]:%u",address,ntohs(cs->addr_inbound->sin_port));
+
}
- plugin->env->receive(plugin->env, &(cs->sender), gn_msg, 1, cs ,
tmp, strlen(tmp));
- GNUNET_free(tmp);
+ if (NULL != tmp)
+ {
+ plugin->env->receive(plugin->env, &(cs->sender), gn_msg, 1, cs ,
tmp, strlen(tmp));
+ GNUNET_free_non_null(tmp);
+ }
send_error_to_client = GNUNET_NO;
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r11777 - gnunet/src/transport,
gnunet <=