[asterisk-commits] file: branch group/pimp_my_sip r383924 - /team/group/pimp_my_sip/res/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Mar 26 18:33:28 CDT 2013


Author: file
Date: Tue Mar 26 18:33:24 2013
New Revision: 383924

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=383924
Log:
Just want to see what this does to Bamboo...

Modified:
    team/group/pimp_my_sip/res/res_sip_authenticator_digest.c

Modified: team/group/pimp_my_sip/res/res_sip_authenticator_digest.c
URL: http://svnview.digium.com/svn/asterisk/team/group/pimp_my_sip/res/res_sip_authenticator_digest.c?view=diff&rev=383924&r1=383923&r2=383924
==============================================================================
--- team/group/pimp_my_sip/res/res_sip_authenticator_digest.c (original)
+++ team/group/pimp_my_sip/res/res_sip_authenticator_digest.c Tue Mar 26 18:33:24 2013
@@ -192,7 +192,7 @@
  */
 static int build_nonce(struct ast_str **nonce, const char *timestamp, const pjsip_rx_data *rdata, const char *realm)
 {
-	RAII_VAR(struct ast_str *, str, ast_str_create(64), ast_free_ptr);
+	struct ast_str *str = ast_str_alloca(256);
 	RAII_VAR(char *, eid, ao2_global_obj_ref(entity_id), ao2_cleanup);
 	char hash[32];
 
@@ -225,7 +225,7 @@
 	char *timestamp = strsep(&copy, "/");
 	int timestamp_int;
 	time_t now = time(NULL);
-	RAII_VAR(struct ast_str *, calculated, ast_str_create(64), ast_free_ptr);
+	struct ast_str *calculated = ast_str_alloca(64);
 
 	if (!copy) {
 		/* Clearly a bad nonce! */
@@ -342,7 +342,7 @@
 	pj_str_t qop;
 	pj_str_t pj_nonce;
 	pjsip_auth_srv auth_server;
-	RAII_VAR(struct ast_str *, nonce, ast_str_create(64), ast_free_ptr);
+	struct ast_str *nonce = ast_str_alloca(256);
 	char time_buf[32];
 	time_t timestamp = time(NULL);
 	snprintf(time_buf, sizeof(time_buf), "%d", (int) timestamp);




More information about the asterisk-commits mailing list