[PATCH] Staging: rtl8188eu: rtw_mlme: Fix uninitialized variable authmode

dinghao.liu at zju.edu.cn dinghao.liu at zju.edu.cn
Mon Jul 27 13:39:57 UTC 2020


> 
> Yes, in this routine, it would be possible for authmode to not be set; however, 
> later code only compares it to either _WPA_IE_ID_ or _WPA2_IE_ID_. It is never 
> used in a way that an unset value could make the program flow be different by 
> arbitrarily setting the value to zero. Thus your statement "Then authmode may 
> contain a garbage value and influence the execution flow of this function." is 
> false.
> 

It's clear to me. Thank you for your advice.

Regards,
Dinghao


More information about the devel mailing list