Fix "little crash" in inuse handling (bug #3792)
authorMark Spencer <markster@digium.com>
Sat, 19 Mar 2005 22:42:29 +0000 (22:42 +0000)
committerMark Spencer <markster@digium.com>
Sat, 19 Mar 2005 22:42:29 +0000 (22:42 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5206 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 16b2605..1cbe0b4 100755 (executable)
@@ -1767,7 +1767,7 @@ static int update_user_counter(struct sip_pvt *fup, int event)
                                        return -1; 
                                }
                        }
-                       u->inUse++;
+                       (*inuse)++;
                        ast_log(LOG_DEBUG, "Call from %s '%s' is %d out of %d\n", u?"user":"peer", name, *inuse, *incominglimit);
                        break;
 #ifdef DISABLED_CODE