diff options
Diffstat (limited to 'src/or/rendcommon.c')
-rw-r--r-- | src/or/rendcommon.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c index 1d96f3daf5..d6f5443815 100644 --- a/src/or/rendcommon.c +++ b/src/or/rendcommon.c @@ -700,7 +700,9 @@ rend_encode_service_descriptor(rend_service_descriptor_t *desc, cp += ipoint_len+1; } note_crypto_pk_op(REND_SERVER); - r = crypto_pk_private_sign_digest(key, cp, *str_out, cp-*str_out); + r = crypto_pk_private_sign_digest(key, + cp, buflen - (cp - *str_out), + *str_out, cp-*str_out); if (r<0) { tor_free(*str_out); return -1; |