[Asterisk-code-review] res pjsip.c: Fix endpoint identifier registration name search. (asterisk[13])

Richard Mudgett asteriskteam at digium.com
Fri Jan 5 18:44:28 CST 2018


Richard Mudgett has posted comments on this change. ( https://gerrit.asterisk.org/7841 )

Change subject: res_pjsip.c: Fix endpoint identifier registration name search.
......................................................................


Patch Set 1:

(2 comments)

https://gerrit.asterisk.org/#/c/7841/1/res/res_pjsip.c
File res/res_pjsip.c:

https://gerrit.asterisk.org/#/c/7841/1/res/res_pjsip.c@2576
PS1, Line 2576: 		ast_log(LOG_ERROR, "Unable to add endpoint identifier. Out of memory.\n");
> To be honest I think this and all similar allocation failure messages shoul
Well this second allocation failure message can be more descriptive of why we wanted memory.  However, the logger is going to try to allocate more memory for the log message. :)

George seems to like them. :P


https://gerrit.asterisk.org/#/c/7841/1/res/res_pjsip.c@2580
PS1, Line 2580: 	id_list_item->name = name;
> Should you prevent this value from being NULL as well?
No this actually is valid to be NULL.  See ast_sip_register_endpoint_identifier().



-- 
To view, visit https://gerrit.asterisk.org/7841
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib8819ec4b811da8a27419fd93528c54d34f01484
Gerrit-Change-Number: 7841
Gerrit-PatchSet: 1
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-Comment-Date: Sat, 06 Jan 2018 00:44:28 +0000
Gerrit-HasComments: Yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180105/353a166f/attachment.html>


More information about the asterisk-code-review mailing list