Explorar o código

uac: proper condition to chech if ha1 flag is set for uac reg authentication

- GH #2108
Daniel-Constantin Mierla %!s(int64=5) %!d(string=hai) anos
pai
achega
2a3186ee0f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/modules/uac/auth_alg.c

+ 1 - 1
src/modules/uac/auth_alg.c

@@ -96,7 +96,7 @@ void uac_calc_HA1( struct uac_credential *crd,
 	MD5_CTX Md5Ctx;
 	HASH HA1;
 
-	if(UAC_FLCRED_HA1 & UAC_FLCRED_HA1) {
+	if(crd->aflags & UAC_FLCRED_HA1) {
 		memcpy(sess_key, crd->passwd.s, HASHHEXLEN);
 		sess_key[HASHHEXLEN] = '\0';
 		if ( auth->flags& AUTHENTICATE_MD5SESS ) {