projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a95db2
)
-check return value
author
Christian Grothoff
<christian@grothoff.org>
Wed, 25 Jul 2012 08:38:12 +0000
(08:38 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Wed, 25 Jul 2012 08:38:12 +0000
(08:38 +0000)
src/util/pseudonym.c
patch
|
blob
|
history
diff --git
a/src/util/pseudonym.c
b/src/util/pseudonym.c
index c3964f296b80b90102213dfccff76d9734be1594..48852ee378f9eb1c192679a8c1768c3d1e4d697d 100644
(file)
--- a/
src/util/pseudonym.c
+++ b/
src/util/pseudonym.c
@@
-487,8
+487,13
@@
GNUNET_PSEUDONYM_name_to_id (const struct GNUNET_CONFIGURATION_Handle *cfg,
GNUNET_DISK_PERM_USER_READ |
GNUNET_DISK_PERM_USER_WRITE);
GNUNET_free (fn);
- GNUNET_DISK_file_seek (fh, idx * sizeof (struct GNUNET_HashCode),
- GNUNET_DISK_SEEK_SET);
+ if (GNUNET_SYSERR ==
+ GNUNET_DISK_file_seek (fh, idx * sizeof (struct GNUNET_HashCode),
+ GNUNET_DISK_SEEK_SET))
+ {
+ GNUNET_DISK_file_close (fh);
+ return GNUNET_SYSERR;
+ }
if (sizeof (struct GNUNET_HashCode) !=
GNUNET_DISK_file_read (fh, nsid, sizeof (struct GNUNET_HashCode)))
{