Skip to content

Commit c97e632

Browse files
committed
fixed gcc warning on arm
1 parent 96607b2 commit c97e632

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: hcxpmktool.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ else
265265

266266
if(!EVP_MAC_init(ctxhmac, pmkcalculated, 32, paramssha1)) return false;
267267
if(!EVP_MAC_update(ctxhmac, ptkcalculated, 100)) return false;
268-
if(!EVP_MAC_final(ctxhmac, ptkcalculated, NULL, 256)) return false;
268+
if(!EVP_MAC_final(ctxhmac, ptkcalculated, NULL, 64)) return false;
269269
return true;
270270
}
271271
/*===========================================================================*/
@@ -621,7 +621,7 @@ if(pskstring != NULL)
621621
{
622622
if(hex2bin(pskstring, pmkcalculated, 32) != 32)
623623
{
624-
fprintf(stderr, "\nPMK error %ld\n", strlen(pskstring));
624+
fprintf(stderr, "\nPMK error\n");
625625
return EXIT_FAILURE;
626626
}
627627
status |= HAS_PMK;

0 commit comments

Comments
 (0)