free(NULL, ...) is not safe in the kernel. So check for NULL'ness before free()'ing buf in sd_get_parms(). Tweak code so there is only one free(buf, ...) to worry about.
free(NULL, ...) is not safe in the kernel. So check for NULL'ness
before free()'ing buf in sd_get_parms(). Tweak code so there is only
one free(buf, ...) to worry about.

ok deraadt@.

orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars