projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
592caff
)
fix
author
Christian Grothoff
<christian@grothoff.org>
Wed, 9 Jun 2010 12:56:39 +0000
(12:56 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Wed, 9 Jun 2010 12:56:39 +0000
(12:56 +0000)
src/util/connection.c
patch
|
blob
|
history
diff --git
a/src/util/connection.c
b/src/util/connection.c
index d218714c082314a4fb68685c602e1272aab164ae..acbeca4ed0d79e3409dd26d12aeefb1c6b089484 100644
(file)
--- a/
src/util/connection.c
+++ b/
src/util/connection.c
@@
-937,6
+937,12
@@
GNUNET_CONNECTION_create_from_connect_to_unixpath (struct GNUNET_SCHEDULER_Handl
ret->addr = (struct sockaddr*) un;
ret->addrlen = slen;
ret->sock = GNUNET_NETWORK_socket_create (AF_UNIX, SOCK_STREAM, 0);
+ if (NULL == ret->sock)
+ {
+ GNUNET_free (un);
+ GNUNET_free (ret);
+ return NULL;
+ }
if (GNUNET_OK != GNUNET_NETWORK_socket_connect (ret->sock,
ret->addr,
ret->addrlen))