lcp / mokutil

The utility to manipulate machine owner keys
GNU General Public License v3.0
60 stars 37 forks source link

src/util.c: fix NULL pointer dereference in mok_get_variable #37

Closed xnox closed 3 years ago

xnox commented 3 years ago

Instead of setting the passed data_sizeop to NULL pointer, only reset the value it points to.

xnox commented 3 years ago

CC: @vathpela

lcp commented 3 years ago

Thanks for the fix!