correct NULL check on desc in rend_encode_v2_descriptors
desc is dereferenced with desc->pk, and then checked for NULL.
rendcommon.c:459,469
crypto_pk_env_t *service_key = auth_type == REND_STEALTH_AUTH ? client_key : desc->pk; tor_assert(service_key); if (auth_type == REND_STEALTH_AUTH) { descriptor_cookie = smartlist_get(client_cookies, 0); tor_assert(descriptor_cookie); } if (!desc) { log_warn(LD_REND, "Could not encode v2 descriptor: No desc given."); return -1; }
[Automatically added by flyspray2trac: Operating System: All]
Trac:
Username: ekir