Browse code

to parsing by passed

Bogdan-Andrei Iancu authored on 14/02/2002 16:53:20
Showing 2 changed files
... ...
@@ -307,7 +307,7 @@ struct sip_msg*  sip_msg_cloner( struct sip_msg *org_msg )
307 307
        (*rpl_lump_anchor)->next=0;
308 308
        rpl_lump_anchor = &((*rpl_lump_anchor)->next);
309 309
    }
310
-
310
+    DBG("DEBUG:cloner --------<%d>---------<%d>-------------\n",len,p-foo);
311 311
    return new_msg;
312 312
 }
313 313
 
... ...
@@ -254,18 +254,19 @@ char* get_hdr_field(char* buf, char* end, struct hdr_field* hdr)
254 254
 				goto error;
255 255
 			}
256 256
 			memset(to_b, 0, sizeof(struct to_body));
257
+			/*
257 258
 			hdr->body.s=tmp;
258 259
 			tmp=parse_to(tmp, end,to_b);
259 260
 			if (to_b->error==PARSE_ERROR){
260 261
 				LOG(L_ERR, "ERROR: get_hdr_field: bad to header\n");
261 262
 				pkg_free(to_b);
262 263
 				goto error;
263
-			}
264
-			hdr->parsed=to_b;
264
+			}*/
265
+			hdr->parsed=to_b;/*
265 266
 			hdr->body.len=tmp-hdr->body.s;
266 267
 			DBG("get_hdr_field: to <%s>: <%s>=[%d] <%c> [%d]\n",
267 268
 				hdr->name.s, to_b->body.s,to_b->body.len,*tmp,hdr->body.len);
268
-			break;
269
+			break;*/
269 270
 		case HDR_FROM:
270 271
 		case HDR_CALLID:
271 272
 		case HDR_CONTACT: