Explorar el Código

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

Daniel-Constantin Mierla hace 3 años
padre
commit
67e0fa5e53
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/core/parser/digest/digest.c

+ 2 - 1
src/core/parser/digest/digest.c

@@ -259,8 +259,9 @@ int find_credentials(struct sip_msg* msg, str* realm,
 		hdr_flags=HDR_PROXYAUTH_F;
 		break;
 	default:
+		LM_WARN("unexpected header type %d - using authorization\n", hftype);
 		hook = &(msg->authorization);
-		hdr_flags=HDR_T2F(hftype);
+		hdr_flags=HDR_AUTHORIZATION_F;
 		break;
 	}