Browse code

core: parser digest - warn if the header type is not set properly

Daniel-Constantin Mierla authored on 15/03/2022 09:30:58
Showing 1 changed files
... ...
@@ -259,8 +259,9 @@ int find_credentials(struct sip_msg* msg, str* realm,
259 259
 		hdr_flags=HDR_PROXYAUTH_F;
260 260
 		break;
261 261
 	default:
262
+		LM_WARN("unexpected header type %d - using authorization\n", hftype);
262 263
 		hook = &(msg->authorization);
263
-		hdr_flags=HDR_T2F(hftype);
264
+		hdr_flags=HDR_AUTHORIZATION_F;
264 265
 		break;
265 266
 	}
266 267