[Asterisk-code-review] res/res pjsip session: Only check localnet if it is defined (asterisk[13])

Richard Mudgett asteriskteam at digium.com
Thu Mar 16 13:53:51 CDT 2017


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

Change subject: res/res_pjsip_session: Only check localnet if it is defined
......................................................................


Patch Set 4: Code-Review-1

(3 comments)

Minor issues

https://gerrit.asterisk.org/#/c/5229/4/res/res_pjsip_sdp_rtp.c
File res/res_pjsip_sdp_rtp.c:

Line 1454: 	if (transport_state->localnet && ast_apply_ha(transport_state->localnet, &addr) == AST_SENSE_ALLOW) {
Line should be wrapped.


https://gerrit.asterisk.org/#/c/5229/4/res/res_pjsip_session.c
File res/res_pjsip_session.c:

PS4, Line 3115: transport_state->localnet && 
This check is redundant.  If transport_state->localnet were NULL we would have already gone to the then clause.

As it is this line needs to be wrapped.


https://gerrit.asterisk.org/#/c/5229/4/res/res_pjsip_t38.c
File res/res_pjsip_t38.c:

Line 872: 	if (transport_state->localnet && ast_apply_ha(transport_state->localnet, &addr) == AST_SENSE_ALLOW) {
Line should be wrapped.


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Ib661c31a954cabc9c99f1f25c9c9a5c5b82cbbfb
Gerrit-PatchSet: 4
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Matt Jordan <mjordan at digium.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-HasComments: Yes



More information about the asterisk-code-review mailing list