forward-merge from branch

remotes/origin/3.3+ngcp2.7
Andrew Pogrebennyk 13 years ago
parent d3f0635686
commit 6545a36f73

@ -241,7 +241,7 @@ int get_authorized_cred(struct hdr_field* _f, struct hdr_field** _h)
int find_credentials(struct sip_msg* msg, str* realm,
hdr_types_t hftype, struct hdr_field** hdr)
{
struct hdr_field** hook, *ptr, *prev;
struct hdr_field** hook, *ptr;
hdr_flags_t hdr_flags;
int res;
str* r;
@ -299,15 +299,18 @@ int find_credentials(struct sip_msg* msg, str* realm,
}
}
prev = ptr;
if (parse_headers(msg, hdr_flags, 1) == -1) {
LOG(L_ERR, "auth:find_credentials: Error while parsing headers\n");
return -4;
} else {
if (prev != msg->last_header) {
if (msg->last_header->type == hftype) ptr = msg->last_header;
else break;
} else break;
ptr = ptr->next;
while (ptr) {
if (ptr->type == hftype)
break;
ptr = ptr->next;
}
if (!ptr)
break;
}
}

@ -1,3 +1,9 @@
kamailio (3.3+ngcp2.6.12) unstable; urgency=low
* Don't stop after first Authorization header if all message is already parsed in find_credentials.
-- Andrew Pogrebennyk <apogrebennyk@sipwise.com> Sun, 16 Dec 2012 18:21:47 +0100
kamailio (3.3+ngcp2.6.10) unstable; urgency=low
* Fix bag tagging.

Loading…
Cancel
Save