浏览代码

ims_auth: warn if the header type is not set properly

Daniel-Constantin Mierla 3 年之前
父节点
当前提交
5c774d6ece
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/modules/ims_auth/utils.c

+ 2 - 1
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;
 	}