aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-20 20:22:22 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-20 20:22:22 +0000
commit1cea735dc91de3b0cecaf5378259a1905ebfa8ca (patch)
treee0e419cbb5ea85cf318d2116b639f7ec493aecb8
parent4c781ba3b696c6caebe013dd9679f2f61c71a934 (diff)
Merged revisions 94255 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r94255 | russell | 2007-12-20 14:21:41 -0600 (Thu, 20 Dec 2007) | 5 lines Fix another potential seg fault ... (closes issue #11606) Reported by: dimas ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@94256 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_iax2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index 1e09d552e..34f91987c 100644
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
@@ -2704,7 +2704,7 @@ static struct iax2_peer *realtime_peer(const char *peername, struct sockaddr_in
* is because we only have the IP address and the host field might be
* set as a name (and the reverse PTR might not match).
*/
- if (var) {
+ if (var && sin) {
for (tmp = var; tmp; tmp = tmp->next) {
if (!strcasecmp(tmp->name, "host")) {
struct in_addr sin2 = { 0, };