[asterisk-commits] dvossel: branch 1.8 r284952 -	/branches/1.8/channels/chan_sip.c
    SVN commits to the Asterisk project 
    asterisk-commits at lists.digium.com
       
    Fri Sep  3 13:03:27 CDT 2010
    
    
  
Author: dvossel
Date: Fri Sep  3 13:03:23 2010
New Revision: 284952
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=284952
Log:
During OPTIONS authentication, the authpeer does not need to be returned for any reason.
Modified:
    branches/1.8/channels/chan_sip.c
Modified: branches/1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/channels/chan_sip.c?view=diff&rev=284952&r1=284951&r2=284952
==============================================================================
--- branches/1.8/channels/chan_sip.c (original)
+++ branches/1.8/channels/chan_sip.c Fri Sep  3 13:03:23 2010
@@ -20471,7 +20471,6 @@
 static int handle_request_options(struct sip_pvt *p, struct sip_request *req, struct ast_sockaddr *addr, const char *e)
 {
 	int res;
-	struct sip_peer *authpeer = NULL;	/* Matching Peer */
 
 	if (p->lastinvite) {
 		/* if this is a request in an active dialog, just confirm that the dialog exists. */
@@ -20483,7 +20482,7 @@
 		/* Do authentication if this OPTIONS request began the dialog */
 		copy_request(&p->initreq, req);
 		set_pvt_allowed_methods(p, req);
-		res = check_user_full(p, req, SIP_OPTIONS, e, XMIT_UNRELIABLE, addr, &authpeer);
+		res = check_user(p, req, SIP_OPTIONS, e, XMIT_UNRELIABLE, addr);
 		if (res == AUTH_CHALLENGE_SENT) {
 			sip_scheddestroy(p, DEFAULT_TRANS_TIMEOUT);
 			return 0;
    
    
More information about the asterisk-commits
mailing list