projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
- fix cli arg parse
[oweals/gnunet.git]
/
src
/
util
/
network.c
diff --git
a/src/util/network.c
b/src/util/network.c
index d321a70094c7a2f569980eabfea16a822eca154f..46e6fa03b3cbdc0c5a9940074a84d03e5000bb3d 100644
(file)
--- a/
src/util/network.c
+++ b/
src/util/network.c
@@
-505,7
+505,7
@@
GNUNET_NETWORK_socket_close (struct GNUNET_NETWORK_Handle *desc)
while ((len > 0) && (dirname[len] != DIR_SEPARATOR))
len--;
dirname[len] = '\0';
- if (
0 != rmdir (dirname
))
+ if (
(0 != len) && (0 != rmdir (dirname)
))
{
switch (errno)
{