commit 9e3c0c39c0757598bb988b3abf488c9d0686d2a1
parent 82dad580ad5ba8d2ec44a3a94f5acff01a70489d
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 15 Sep 2013 16:01:27 +0000
-fix check of return value
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/fs/fs_api.c b/src/fs/fs_api.c
@@ -1634,9 +1634,9 @@ GNUNET_FS_publish_sync_ (struct GNUNET_FS_PublishContext *pc)
GNUNET_BIO_write_string (wh,
(NULL == pc->fi_pos) ? NULL : pc->fi_pos->serialization)) ||
( (NULL != pc->ns) &&
- GNUNET_BIO_write (wh,
- pc->ns,
- sizeof (struct GNUNET_CRYPTO_EccPrivateKey)) ) )
+ (GNUNET_OK != GNUNET_BIO_write (wh,
+ pc->ns,
+ sizeof (struct GNUNET_CRYPTO_EccPrivateKey)) ) ))
{
GNUNET_break (0);
goto cleanup;