aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_publish.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-03-29 17:51:49 +0000
committerChristian Grothoff <christian@grothoff.org>2010-03-29 17:51:49 +0000
commita8e90a359a36b28bc73bd3709332cef607d139fa (patch)
tree587f60f42c4a21155a80cded9f349f6c95f91457 /src/fs/fs_publish.c
parent481d9421fcb761679daea807e94dd147d35ea7a0 (diff)
downloadgnunet-a8e90a359a36b28bc73bd3709332cef607d139fa.tar.gz
gnunet-a8e90a359a36b28bc73bd3709332cef607d139fa.zip
fixes
Diffstat (limited to 'src/fs/fs_publish.c')
-rw-r--r--src/fs/fs_publish.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fs/fs_publish.c b/src/fs/fs_publish.c
index f6e66e456..dbecdfab7 100644
--- a/src/fs/fs_publish.c
+++ b/src/fs/fs_publish.c
@@ -1498,7 +1498,6 @@ GNUNET_FS_publish_sks (struct GNUNET_FS_Handle *h,
1498 update = ""; 1498 update = "";
1499 nidlen = strlen (update) + 1; 1499 nidlen = strlen (update) + 1;
1500 mdsize = GNUNET_CONTAINER_meta_data_get_serialized_size (meta); 1500 mdsize = GNUNET_CONTAINER_meta_data_get_serialized_size (meta);
1501
1502 size = sizeof (struct SBlock) + slen + nidlen + mdsize; 1501 size = sizeof (struct SBlock) + slen + nidlen + mdsize;
1503 if (size > MAX_SBLOCK_SIZE) 1502 if (size > MAX_SBLOCK_SIZE)
1504 { 1503 {
@@ -1526,7 +1525,7 @@ GNUNET_FS_publish_sks (struct GNUNET_FS_Handle *h,
1526 return; 1525 return;
1527 } 1526 }
1528 size = sizeof (struct SBlock) + mdsize + slen + nidlen; 1527 size = sizeof (struct SBlock) + mdsize + slen + nidlen;
1529 sb_enc = GNUNET_malloc (sizeof (struct SBlock) + size); 1528 sb_enc = GNUNET_malloc (size);
1530 GNUNET_CRYPTO_hash (identifier, idlen, &key); 1529 GNUNET_CRYPTO_hash (identifier, idlen, &key);
1531 GNUNET_CRYPTO_hash (&key, sizeof (GNUNET_HashCode), &id); 1530 GNUNET_CRYPTO_hash (&key, sizeof (GNUNET_HashCode), &id);
1532 sks_uri = GNUNET_malloc (sizeof (struct GNUNET_FS_Uri)); 1531 sks_uri = GNUNET_malloc (sizeof (struct GNUNET_FS_Uri));