diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-06-17 21:12:09 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-06-17 21:12:09 +0000 |
commit | bed39036b47e1b820ee40d645f743e18520c4f8c (patch) | |
tree | 6218facf7c12448327e82780896a609ac000e128 /src/fs/fs_publish.c | |
parent | a6d3a7a355634ef0396f009f9286962cdc4c6077 (diff) | |
download | gnunet-bed39036b47e1b820ee40d645f743e18520c4f8c.tar.gz gnunet-bed39036b47e1b820ee40d645f743e18520c4f8c.zip |
fixes
Diffstat (limited to 'src/fs/fs_publish.c')
-rw-r--r-- | src/fs/fs_publish.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fs/fs_publish.c b/src/fs/fs_publish.c index a7aa695f3..e7ebeac82 100644 --- a/src/fs/fs_publish.c +++ b/src/fs/fs_publish.c | |||
@@ -725,6 +725,7 @@ hash_for_index_cb (void *cls, | |||
725 | return; | 725 | return; |
726 | } | 726 | } |
727 | fn = GNUNET_STRINGS_filename_expand (p->filename); | 727 | fn = GNUNET_STRINGS_filename_expand (p->filename); |
728 | GNUNET_assert (fn != NULL); | ||
728 | slen = strlen (fn) + 1; | 729 | slen = strlen (fn) + 1; |
729 | if (slen > GNUNET_SERVER_MAX_MESSAGE_SIZE - sizeof(struct IndexStartMessage)) | 730 | if (slen > GNUNET_SERVER_MAX_MESSAGE_SIZE - sizeof(struct IndexStartMessage)) |
730 | { | 731 | { |
@@ -1369,6 +1370,7 @@ publish_ksk_cont (void *cls, | |||
1369 | &iv, | 1370 | &iv, |
1370 | &pkc->cpy[1]); | 1371 | &pkc->cpy[1]); |
1371 | pk = GNUNET_CRYPTO_rsa_key_create_from_hash (&key); | 1372 | pk = GNUNET_CRYPTO_rsa_key_create_from_hash (&key); |
1373 | GNUNET_assert (NULL != pk); | ||
1372 | GNUNET_CRYPTO_rsa_key_get_public (pk, &pkc->cpy->keyspace); | 1374 | GNUNET_CRYPTO_rsa_key_get_public (pk, &pkc->cpy->keyspace); |
1373 | GNUNET_CRYPTO_hash (&pkc->cpy->keyspace, | 1375 | GNUNET_CRYPTO_hash (&pkc->cpy->keyspace, |
1374 | sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded), | 1376 | sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded), |