fix typo in chan sip that causes segV
authorAnthony Minessale II <anthmct@yahoo.com>
Thu, 7 Oct 2004 16:42:37 +0000 (16:42 +0000)
committerAnthony Minessale II <anthmct@yahoo.com>
Thu, 7 Oct 2004 16:42:37 +0000 (16:42 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3931 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 071c4a8..d7979ea 100755 (executable)
@@ -8786,7 +8786,7 @@ static void delete_users(void)
        for (user=userl.users;user;) {
                userlast = user;
                user=user->next;
-               destroy_user(user);
+               destroy_user(userlast);
        }
        userl.users=NULL;
        ast_mutex_unlock(&userl.lock);