[asterisk-commits] dlee: branch dlee/ari-authn r393117 - /team/dlee/ari-authn/res/res_stasis_http.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jun 27 23:21:43 CDT 2013


Author: dlee
Date: Thu Jun 27 23:21:41 2013
New Revision: 393117

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=393117
Log:
Fixed invalid ref bump

Modified:
    team/dlee/ari-authn/res/res_stasis_http.c

Modified: team/dlee/ari-authn/res/res_stasis_http.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/ari-authn/res/res_stasis_http.c?view=diff&rev=393117&r1=393116&r2=393117
==============================================================================
--- team/dlee/ari-authn/res/res_stasis_http.c (original)
+++ team/dlee/ari-authn/res/res_stasis_http.c Thu Jun 27 23:21:41 2013
@@ -716,6 +716,9 @@
 	*colon = '\0';
 
 	user = ari_config_validate_user(username, colon + 1);
+	if (!user) {
+		return NULL;
+	}
 
 	ao2_ref(user, +1);
 	return user;




More information about the asterisk-commits mailing list