[svn-commits] trunk r8925 - /trunk/channels/chan_sip.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Tue Jan 31 14:20:56 MST 2006


Author: oej
Date: Mon Jan 30 13:09:08 2006
New Revision: 8925

URL: http://svn.digium.com/view/asterisk?rev=8925&view=rev
Log:
Issue #6035 - Don't send 403 on bad auth (correcting one of my old mistakes...) Reported by maik.
Patch inspired by, but not the patch in the bug tracker.

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=8925&r1=8924&r2=8925&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Mon Jan 30 13:09:08 2006
@@ -6368,9 +6368,14 @@
 		} 
 		if (good_response) /* Auth is OK */
 			return 0;
-	}
-	/* Failure */
-	return -1;
+
+		/* Ok, we have a bad username/secret pair */
+		/* Challenge again, and again, and again */
+		transmit_response_with_auth(p, response, req, p->randdata, reliable, respheader, 0);
+		sip_scheddestroy(p, 32000);
+		return 1;		/* Challenge sent */
+
+	}
 }
 
 /*! \brief Callback for the devicestate notification (SUBSCRIBE) support subsystem



More information about the svn-commits mailing list