Browse code

- fixed SET_URI bug (parsed_uri_ok not always reseted)

Andrei Pelinescu-Onciul authored on 17/10/2002 12:09:32
Showing 1 changed files
... ...
@@ -350,10 +350,10 @@ int do_action(struct action* a, struct sip_msg* msg)
350 350
 					if (msg->new_uri.s) {
351 351
 							pkg_free(msg->new_uri.s);
352 352
 							msg->new_uri.len=0;
353
-							if (msg->parsed_uri_ok){
354
-								msg->parsed_uri_ok=0;
355
-								free_uri(&msg->parsed_uri);
356
-							}
353
+					}
354
+					if (msg->parsed_uri_ok){
355
+							msg->parsed_uri_ok=0;
356
+							free_uri(&msg->parsed_uri);
357 357
 					}
358 358
 					len=strlen(a->p1.string);
359 359
 					msg->new_uri.s=pkg_malloc(len+1);