Module: kamailio
Branch: master
Commit: 5c774d6eced2ad52cb341b9e36419aac6c0506cb
URL:
https://github.com/kamailio/kamailio/commit/5c774d6eced2ad52cb341b9e36419aa…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-03-15T10:38:42+01:00
ims_auth: warn if the header type is not set properly
---
Modified: src/modules/ims_auth/utils.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5c774d6eced2ad52cb341b9e36419aa…
Patch:
https://github.com/kamailio/kamailio/commit/5c774d6eced2ad52cb341b9e36419aa…
---
diff --git a/src/modules/ims_auth/utils.c b/src/modules/ims_auth/utils.c
index 94d02e3fe7..b745af0275 100644
--- a/src/modules/ims_auth/utils.c
+++ b/src/modules/ims_auth/utils.c
@@ -71,8 +71,9 @@ int ims_find_credentials(struct sip_msg* _m, str* _realm,
hdr_flags = HDR_PROXYAUTH_F;
break;
default:
+ LM_WARN("unexpected header type %d - using authorization\n", _hftype);
hook = &(_m->authorization);
- hdr_flags = HDR_T2F(_hftype);
+ hdr_flags = HDR_AUTHORIZATION_F;
break;
}