]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix logging message for stale nonce.
authorPaul Belanger <paul.belanger@polybeacon.com>
Fri, 9 Jul 2010 19:20:00 +0000 (19:20 +0000)
committerPaul Belanger <paul.belanger@polybeacon.com>
Fri, 9 Jul 2010 19:20:00 +0000 (19:20 +0000)
(closes issue #17582)
Reported by: kenner
Patches:
      chan_sip.c.diff uploaded by kenner (license 1040)
Tested by: lmadsen

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

channels/chan_sip.c

index 01742f8cf6a72b33c889fa6a16575c9f9b2c7a97..7bd669cb024bd447a9ef6280175a9c86b76d9d4e 100644 (file)
@@ -9096,7 +9096,7 @@ static enum check_auth_result check_auth(struct sip_pvt *p, struct sip_request *
        if (wrongnonce) {
                if (good_response) {
                        if (sipdebug)
-                               ast_log(LOG_NOTICE, "Correct auth, but based on stale nonce received from '%s'\n", get_header(req, "To"));
+                               ast_log(LOG_NOTICE, "Correct auth, but based on stale nonce received from '%s'\n", get_header(req, "From"));
                        /* We got working auth token, based on stale nonce . */
                        set_nonce_randdata(p, 0);
                        transmit_response_with_auth(p, response, req, p->randdata, reliable, respheader, TRUE);