diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-03-11 22:16:18 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-03-11 22:16:18 +0000 |
commit | 4d1e3df1630fdf83564b8f913867e55bc863ccd1 (patch) | |
tree | 9de547bfa1fad07cf93763a7ab28ce661c96fa5c /src | |
parent | 4b1ebbf65f3798f9ce2863634fd3ed3de19daa11 (diff) | |
download | gnunet-4d1e3df1630fdf83564b8f913867e55bc863ccd1.tar.gz gnunet-4d1e3df1630fdf83564b8f913867e55bc863ccd1.zip |
-fix
Diffstat (limited to 'src')
-rw-r--r-- | src/util/crypto_rsa.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/util/crypto_rsa.c b/src/util/crypto_rsa.c index 2bb65f69b..ee7e5e9f8 100644 --- a/src/util/crypto_rsa.c +++ b/src/util/crypto_rsa.c | |||
@@ -232,15 +232,15 @@ GNUNET_CRYPTO_rsa_public_key_to_string (struct GNUNET_CRYPTO_RsaPublicKeyBinaryE | |||
232 | keylen += 5 - keylen % 5; | 232 | keylen += 5 - keylen % 5; |
233 | keylen /= 5; | 233 | keylen /= 5; |
234 | pubkeybuf = GNUNET_malloc (keylen + 1); | 234 | pubkeybuf = GNUNET_malloc (keylen + 1); |
235 | end = GNUNET_STRINGS_data_to_string ((unsigned char *) &pub, | 235 | end = GNUNET_STRINGS_data_to_string ((unsigned char *) pub, |
236 | sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded), | 236 | sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded), |
237 | pubkeybuf, | 237 | pubkeybuf, |
238 | keylen); | 238 | keylen); |
239 | if (NULL == end) | 239 | if (NULL == end) |
240 | { | 240 | { |
241 | GNUNET_free (pubkeybuf); | 241 | GNUNET_free (pubkeybuf); |
242 | return NULL; | 242 | return NULL; |
243 | } | 243 | } |
244 | *end = '\0'; | 244 | *end = '\0'; |
245 | return pubkeybuf; | 245 | return pubkeybuf; |
246 | } | 246 | } |