diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-03-25 07:35:15 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-03-25 07:35:15 +0000 |
commit | 9b9b15d3cc2a9d982d77e7b0f6459dc7eaf88c4c (patch) | |
tree | c85b01a202a70bed3ce74183e87fc7a08522dfc1 /src/fs/fs_uri.c | |
parent | 13449cc7f242597cdff4655161fbce3a340dbd24 (diff) | |
download | gnunet-9b9b15d3cc2a9d982d77e7b0f6459dc7eaf88c4c.tar.gz gnunet-9b9b15d3cc2a9d982d77e7b0f6459dc7eaf88c4c.zip |
ems
Diffstat (limited to 'src/fs/fs_uri.c')
-rw-r--r-- | src/fs/fs_uri.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fs/fs_uri.c b/src/fs/fs_uri.c index 788f60685..4b249d6bf 100644 --- a/src/fs/fs_uri.c +++ b/src/fs/fs_uri.c | |||
@@ -406,8 +406,9 @@ uri_chk_parse (const char *s, char **emsg) | |||
406 | char h1[sizeof(struct GNUNET_CRYPTO_HashAsciiEncoded)]; | 406 | char h1[sizeof(struct GNUNET_CRYPTO_HashAsciiEncoded)]; |
407 | char h2[sizeof(struct GNUNET_CRYPTO_HashAsciiEncoded)]; | 407 | char h2[sizeof(struct GNUNET_CRYPTO_HashAsciiEncoded)]; |
408 | 408 | ||
409 | if (NULL == s) | ||
410 | return NULL; | ||
409 | GNUNET_assert (s != NULL); | 411 | GNUNET_assert (s != NULL); |
410 | |||
411 | slen = strlen (s); | 412 | slen = strlen (s); |
412 | pos = strlen (GNUNET_FS_URI_CHK_PREFIX); | 413 | pos = strlen (GNUNET_FS_URI_CHK_PREFIX); |
413 | if ( (slen < pos + 2 * sizeof (struct GNUNET_CRYPTO_HashAsciiEncoded) + 1) || | 414 | if ( (slen < pos + 2 * sizeof (struct GNUNET_CRYPTO_HashAsciiEncoded) + 1) || |