diff options
author | nevans <nevans@140774ce-b5e7-0310-ab8b-a85725594a96> | 2010-11-12 13:03:09 +0000 |
---|---|---|
committer | nevans <nevans@140774ce-b5e7-0310-ab8b-a85725594a96> | 2010-11-12 13:03:09 +0000 |
commit | fd9667f4d63415e6fe5b3689a242d1bd006c4958 (patch) | |
tree | 9f1acd0f413fbdf97e748442773191c4b7388ea4 /src/peerinfo | |
parent | 788a3cc029fa231bbfd99d4389035f2c1422a0e7 (diff) |
missing null check
git-svn-id: https://gnunet.org/svn/gnunet@13666 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/peerinfo')
-rw-r--r-- | src/peerinfo/peerinfo_api.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/peerinfo/peerinfo_api.c b/src/peerinfo/peerinfo_api.c index e7f095eac8..a72435ffb5 100644 --- a/src/peerinfo/peerinfo_api.c +++ b/src/peerinfo/peerinfo_api.c @@ -236,6 +236,10 @@ do_transmit (void *cls, size_t size, void *buf) } return 0; } + /* If it can be NULL above, it can be NULL here to... */ + if (tqe == NULL) + return 0; + ret = tqe->size; GNUNET_assert (size >= ret); memcpy (buf, &tqe[1], ret); |