Merged revisions 98966 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Wed, 16 Jan 2008 17:51:52 +0000 (17:51 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 16 Jan 2008 17:51:52 +0000 (17:51 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r98966 | file | 2008-01-16 13:50:10 -0400 (Wed, 16 Jan 2008) | 6 lines

Add missing NULLs at end of two ast_load_realtimes.
(closes issue #11769)
Reported by: tequ
Patches:
      chaniax.patch uploaded by dimas (license 88)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@98967 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index e1238ca..e964eb4 100644 (file)
@@ -2951,7 +2951,7 @@ static struct iax2_peer *realtime_peer(const char *peername, struct sockaddr_in
        if (peername) {
                var = ast_load_realtime("iaxpeers", "name", peername, "host", "dynamic", NULL);
                if (!var && sin)
-                       var = ast_load_realtime("iaxpeers", "name", peername, "host", ast_inet_ntoa(sin->sin_addr));
+                       var = ast_load_realtime("iaxpeers", "name", peername, "host", ast_inet_ntoa(sin->sin_addr), NULL);
        } else if (sin) {
                char porta[25];
                sprintf(porta, "%d", ntohs(sin->sin_port));
@@ -3068,7 +3068,7 @@ static struct iax2_user *realtime_user(const char *username, struct sockaddr_in
 
        var = ast_load_realtime("iaxusers", "name", username, "host", "dynamic", NULL);
        if (!var)
-               var = ast_load_realtime("iaxusers", "name", username, "host", ast_inet_ntoa(sin->sin_addr));
+               var = ast_load_realtime("iaxusers", "name", username, "host", ast_inet_ntoa(sin->sin_addr), NULL);
        if (!var && sin) {
                char porta[6];
                snprintf(porta, sizeof(porta), "%d", ntohs(sin->sin_port));