[Asterisk-cvs] asterisk/channels chan_sip.c,1.752,1.753

markster at lists.digium.com markster at lists.digium.com
Sun Jun 5 21:26:23 CDT 2005


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv4374/channels

Modified Files:
	chan_sip.c 
Log Message:
Fix minor OSP compile issue


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.752
retrieving revision 1.753
diff -u -d -r1.752 -r1.753
--- chan_sip.c	5 Jun 2005 14:47:09 -0000	1.752
+++ chan_sip.c	6 Jun 2005 01:28:54 -0000	1.753
@@ -1671,7 +1671,7 @@
 
 		
 #ifdef OSP_SUPPORT
-		else if (!osptoken && !strcasecmp(ast_var_name(current), "OSPTOKEN")) {
+		else if (!options.osptoken && !strcasecmp(ast_var_name(current), "OSPTOKEN")) {
 			options.osptoken = ast_var_value(current);
 		} else if (!osphandle && !strcasecmp(ast_var_name(current), "OSPHANDLE")) {
 			osphandle = ast_var_value(current);
@@ -5351,7 +5351,7 @@
 		ast_log(LOG_DEBUG, "Checking OSP Authentication!\n");
 		osptoken = get_header(req, "P-OSP-Auth-Token");
 		/* Check for token existence */
-		if (!strlen(osptoken))
+		if (ast_strlen_zero(osptoken))
 			return -1;
 		/* Validate token */
 		if (ast_osp_validate(NULL, osptoken, &p->osphandle, &osptimelimit, p->cid_num, p->sa.sin_addr, p->exten) < 1)




More information about the svn-commits mailing list