Merge "res_pjsip_outbound_publish: Fix crash when publishing device state."

This commit is contained in:
Joshua Colp 2016-11-01 18:32:54 -05:00 committed by Gerrit Code Review
commit d94e2250c2
1 changed files with 1 additions and 0 deletions

View File

@ -786,6 +786,7 @@ static int publisher_client_send(void *obj, void *arg, void *data, int flags)
struct sip_outbound_publish_message *message;
size_t type_len = 0, subtype_len = 0, body_text_len = 0;
int *res = data;
SCOPED_AO2LOCK(lock, publisher);
*res = -1;
if (!publisher->client) {