File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,6 @@ static inline int fix_fake_req_headers(struct sip_msg *req)
140
140
struct hdr_field * hdr ;
141
141
struct lump * ld , * la ;
142
142
contact_t * c ;
143
- int enclosed ;
144
143
145
144
if (clone_headers (req , req ) < 0 ) {
146
145
LM_ERR ("could not clone headers list!\n" );
@@ -169,16 +168,10 @@ static inline int fix_fake_req_headers(struct sip_msg *req)
169
168
la->type, ld->u.offset, ld->len,
170
169
(int)(c->uri.s-req->buf), c->uri.len); */
171
170
if (la -> op == LUMP_ADD && la -> type == HDR_CONTACT_T &&
172
- ld -> u .offset == c -> uri .s - req -> buf ) {
173
- /* if we don't have the same length as the URI was
174
- * initially pointing (excluding quotes), then this is
175
- * not the actual URI
176
- */
177
- enclosed = (la -> len > 2 && la -> u .value [0 ] == '<' );
178
- if (la -> len != (c -> uri .len + (enclosed ?2 :0 )))
179
- continue ;
171
+ ld -> u .offset == c -> uri .s - req -> buf &&
172
+ ld -> len == c -> uri .len ) {
180
173
/* if enclosed, skip enclosing */
181
- if (enclosed ) {
174
+ if (la -> u . value [ 0 ] == '<' ) {
182
175
c -> uri .s = la -> u .value + 1 ;
183
176
c -> uri .len = la -> len - 2 ;
184
177
} else {
You can’t perform that action at this time.
0 commit comments