2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Add missing check for NULL in validate_env_vars

This commit is contained in:
Todd C. Miller
2010-04-26 21:38:43 -04:00
parent c8733dbc6e
commit ac06e777fa

View File

@@ -750,6 +750,9 @@ validate_env_vars(char * const env_vars[])
size_t len, blen = 0, bsize = 0;
int okvar;
if (env_vars == NULL)
return;
/* Add user-specified environment variables. */
for (ep = env_vars; *ep != NULL; ep++) {
if (def_secure_path && !user_is_exempt() &&