[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: Fixed potential NULL derefe
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: Fixed potential NULL dereference. |
Date: |
Sun, 07 Jan 2018 15:43:51 +0100 |
This is an automated email from the git hooks/post-receive script.
arny pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 800cb255e Fixed potential NULL dereference.
800cb255e is described below
commit 800cb255ea7ae4e6b55095949bc84eb864c08b2e
Author: anryko <address@hidden>
AuthorDate: Sun Jan 7 15:43:29 2018 +0100
Fixed potential NULL dereference.
---
src/nat/gnunet-nat.c | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/src/nat/gnunet-nat.c b/src/nat/gnunet-nat.c
index b3cf2e946..72f343627 100644
--- a/src/nat/gnunet-nat.c
+++ b/src/nat/gnunet-nat.c
@@ -377,10 +377,16 @@ run (void *cls,
ls = GNUNET_NETWORK_socket_create (af,
SOCK_DGRAM,
IPPROTO_UDP);
+ if (NULL == ls)
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE,
+ "Failed to create socket\n");
+ goto fail_and_shutdown;
+ }
if (GNUNET_OK !=
- GNUNET_NETWORK_socket_bind (ls,
- local_sa,
- local_len))
+ GNUNET_NETWORK_socket_bind (ls,
+ local_sa,
+ local_len))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Failed to bind to %s: %s\n",
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: Fixed potential NULL dereference.,
gnunet <=