diff options
-rw-r--r-- | src/gns/gnunet-gns-proxy.c | 1 | ||||
-rw-r--r-- | src/util/crypto_ecc_setup.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c index c1db1c61e..a834c5c19 100644 --- a/src/gns/gnunet-gns-proxy.c +++ b/src/gns/gnunet-gns-proxy.c | |||
@@ -1230,6 +1230,7 @@ curl_check_hdr (void *buffer, | |||
1230 | new_cookie_hdr[offset++] = ';'; | 1230 | new_cookie_hdr[offset++] = ';'; |
1231 | } | 1231 | } |
1232 | hdr_val = new_cookie_hdr; | 1232 | hdr_val = new_cookie_hdr; |
1233 | hdr_val[offset] = '\0'; | ||
1233 | } | 1234 | } |
1234 | 1235 | ||
1235 | new_location = NULL; | 1236 | new_location = NULL; |
diff --git a/src/util/crypto_ecc_setup.c b/src/util/crypto_ecc_setup.c index 4f5c9cd74..46993e0fc 100644 --- a/src/util/crypto_ecc_setup.c +++ b/src/util/crypto_ecc_setup.c | |||
@@ -174,7 +174,7 @@ GNUNET_CRYPTO_eddsa_key_from_file (const char *filename, | |||
174 | sizeof (*pkey))) | 174 | sizeof (*pkey))) |
175 | { | 175 | { |
176 | /* file existed, report that *we* didn't create it... */ | 176 | /* file existed, report that *we* didn't create it... */ |
177 | return (do_create) ? GNUNET_NO : GNUNET_OK; | 177 | return GNUNET_NO; |
178 | } | 178 | } |
179 | /* give up */ | 179 | /* give up */ |
180 | return GNUNET_SYSERR; | 180 | return GNUNET_SYSERR; |