Module: sip-router
Branch: 3.3
Commit: 8b703e0e8b5c01ac315819b12bdbe35a657bb5f1
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8b703e0…
Author: Richard Fuchs <rfuchs(a)sipwise.com>
Committer: Richard Fuchs <rfuchs(a)sipwise.com>
Date: Mon Dec 17 11:56:24 2012 -0500
parser/digest: use next_sibling_hdr() instead of hand-rolling it
---
parser/digest/digest.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/parser/digest/digest.c b/parser/digest/digest.c
index 2aef8e1..18e31df 100644
--- a/parser/digest/digest.c
+++ b/parser/digest/digest.c
@@ -303,12 +303,7 @@ int find_credentials(struct sip_msg* msg, str* realm,
LOG(L_ERR, "auth:find_credentials: Error while parsing headers\n");
return -4;
} else {
- ptr = ptr->next;
- while (ptr) {
- if (ptr->type == hftype)
- break;
- ptr = ptr->next;
- }
+ ptr = next_sibling_hdr(ptr);
if (!ptr)
break;
}