diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2010-11-12 12:05:18 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2010-11-12 12:05:18 +0000 |
commit | 3c4fb6c09f579ce894e288dc7a4263827ea33037 (patch) | |
tree | 2a6a1563f3fb2ade4075ec691ee5b208ed3f68e5 /src/hostlist | |
parent | b1acf11043ad74903c47d4ac7f08fdf13340fb9f (diff) | |
download | gnunet-3c4fb6c09f579ce894e288dc7a4263827ea33037.tar.gz gnunet-3c4fb6c09f579ce894e288dc7a4263827ea33037.zip |
fixed coverity bug #10022
Diffstat (limited to 'src/hostlist')
-rw-r--r-- | src/hostlist/hostlist-client.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/hostlist/hostlist-client.c b/src/hostlist/hostlist-client.c index 0a78cdc21..9e5cbda65 100644 --- a/src/hostlist/hostlist-client.c +++ b/src/hostlist/hostlist-client.c | |||
@@ -1421,7 +1421,8 @@ static void save_hostlist_file ( int shutdown ) | |||
1421 | "HOSTLISTFILE", "HOSTLIST"); | 1421 | "HOSTLISTFILE", "HOSTLIST"); |
1422 | return; | 1422 | return; |
1423 | } | 1423 | } |
1424 | GNUNET_DISK_directory_create_for_file (filename); | 1424 | if (GNUNET_SYSERR != GNUNET_DISK_directory_create_for_file (filename)) |
1425 | { | ||
1425 | wh = GNUNET_BIO_write_open (filename); | 1426 | wh = GNUNET_BIO_write_open (filename); |
1426 | if ( NULL == wh) | 1427 | if ( NULL == wh) |
1427 | { | 1428 | { |
@@ -1435,7 +1436,7 @@ static void save_hostlist_file ( int shutdown ) | |||
1435 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 1436 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
1436 | _("Writing %u hostlist URIs to `%s'\n" ), | 1437 | _("Writing %u hostlist URIs to `%s'\n" ), |
1437 | linked_list_size, filename); | 1438 | linked_list_size, filename); |
1438 | 1439 | } | |
1439 | /* add code to write hostlists to file using bio */ | 1440 | /* add code to write hostlists to file using bio */ |
1440 | ok = GNUNET_YES; | 1441 | ok = GNUNET_YES; |
1441 | counter = 0; | 1442 | counter = 0; |