Browse code

uac: fix error related to UAC_OLD_AUTH #define and default_socket addition

Henning Westerholt authored on 09/08/2019 09:29:44
Showing 1 changed files
... ...
@@ -1013,11 +1013,11 @@ void uac_reg_tm_callback( struct cell *t, int type, struct tmcb_params *ps)
1013 1013
 		uac_r.cb  = uac_reg_tm_callback;
1014 1014
 		/* Callback parameter */
1015 1015
 		uac_r.cbp = (void*)uuid;
1016
+#ifdef UAC_OLD_AUTH
1016 1017
 		/* default socket */
1017 1018
 		if(uac_default_socket.s != NULL && uac_default_socket.len > 0) {
1018 1019
 			uac_r.ssock = &uac_default_socket;
1019 1020
 		}
1020
-#ifdef UAC_OLD_AUTH
1021 1021
 		ret = uac_tmb.t_request(&uac_r,  /* UAC Req */
1022 1022
 				&s_ruri, /* Request-URI */
1023 1023
 				&s_turi, /* To */