Browse code

corrected BUG in uri2dst - t_uac was not working

Vaclav Kubart authored on 25/05/2006 14:20:52
Showing 1 changed files
... ...
@@ -174,14 +174,12 @@ inline static struct dest_info *uri2dst(struct dest_info* dst,
174 174
 #endif
175 175
 	sip_hostport2su(&dst->to, &parsed_uri.host, parsed_uri.port_no,
176 176
 						dst->proto);
177
-	if (msg){
178
-		dst->send_sock = get_send_socket(msg, &dst->to, dst->proto);
179
-		if (dst->send_sock==0) {
180
-			LOG(L_ERR, "ERROR: uri2sock: no corresponding socket for af %d\n", 
181
-					dst->to.s.sa_family);
182
-			/* ser_error = E_NO_SOCKET;*/
183
-			/* try to continue */
184
-		}
177
+	dst->send_sock = get_send_socket(msg, &dst->to, dst->proto);
178
+	if (dst->send_sock==0) {
179
+		LOG(L_ERR, "ERROR: uri2sock: no corresponding socket for af %d\n", 
180
+				dst->to.s.sa_family);
181
+		/* ser_error = E_NO_SOCKET;*/
182
+		/* try to continue */
185 183
 	}
186 184
 	return dst;
187 185
 }