Module: sip-router
Branch: master
Commit: 6b2ea25f673382a8dc13eb32658e0bff9c3e793b
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6b2ea25…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Thu Oct 7 10:06:20 2010 +0200
auth: fix unparsed from header usage
The from parsing check did not parse also the from body.
---
modules/auth/nonce.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/auth/nonce.c b/modules/auth/nonce.c
index 3fb2367..369a41d 100644
--- a/modules/auth/nonce.c
+++ b/modules/auth/nonce.c
@@ -143,7 +143,7 @@ inline static int calc_bin_nonce_md5(union bin_nonce* b_nonce, int
cfg,
MD5Update(&ctx, msg->callid->body.s, msg->callid->body.len);
}
if ((cfg & AUTH_CHECK_FROMTAG) &&
- !(parse_headers(msg, HDR_FROM_F, 0) < 0 || msg->from == 0)) {
+ !(parse_from_header(msg) < 0 )) {
MD5Update(&ctx, get_from(msg)->tag_value.s,
get_from(msg)->tag_value.len);
}