projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
WiP
[oweals/gnunet.git]
/
src
/
util
/
network.c
diff --git
a/src/util/network.c
b/src/util/network.c
index f7c1e53c1b3fca30e30569f3e8d0e7aaa30d31bd..d23f1a23d7726da871c06360a69aa485f23272d7 100644
(file)
--- a/
src/util/network.c
+++ b/
src/util/network.c
@@
-814,6
+814,7
@@
GNUNET_NETWORK_fdset_copy_native (struct GNUNET_NETWORK_FDSet *to,
void GNUNET_NETWORK_fdset_set_native (struct GNUNET_NETWORK_FDSet *to,
int nfd)
{
+ GNUNET_assert(nfd >= 0);
FD_SET (nfd, &to->sds);
to->nsds = GNUNET_MAX (nfd + 1, to->nsds);
}