Browse code

- typo fixed (same as in stable)

Andrei Pelinescu-Onciul authored on 08/07/2003 12:39:13
Showing 1 changed files
... ...
@@ -194,11 +194,11 @@ int add_uac( struct cell *t, struct sip_msg *request, str *uri, str* next_hop,
194 194
 		proto=get_proto(proto, proxy->proto);
195 195
 	}else {
196 196
 		proxy=uri2proxy( next_hop ? next_hop : uri, proto );
197
-		proto=proxy->proto; /* uri2proxy will fix it for us */
198 197
 		if (proxy==0)  {
199 198
 			ret=E_BAD_ADDRESS;
200 199
 			goto error;
201 200
 		}
201
+		proto=proxy->proto; /* uri2proxy will fix it for us */
202 202
 		temp_proxy=1;
203 203
 	}
204 204