diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-24 00:52:06 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-24 00:52:06 +0000 |
commit | 3ce68916ea7fe4699cb0684a5a278ff773b7c19a (patch) | |
tree | 6a6cdc12d89cf5c46b010a99a10ba67810286678 | |
parent | ebf91ac473d8dadfb0f8c3e74f68765f3c550f5c (diff) |
Fix a seg fault on a registration. Line 7706, in parse_register_contact,
explicitly passes NULL as the "pass" argument to this function.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46055 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_sip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index d888fa19a..4dd79a190 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -2254,9 +2254,9 @@ static int parse_uri(char *uri, char *scheme, int error = 0; /* init field as required */ - if (*pass) + if (pass && *pass) *pass = ""; - if (*port) + if (port && *port) *port = ""; name = strsep(&uri, ";"); /* remove options */ if (scheme) { |