Properly initialise the variable `deny'.
This commit is contained in:
parent
365b18aa89
commit
93931378d9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=141571
@ -415,6 +415,7 @@ allowed(username)
|
||||
|
||||
isallowed = FALSE;
|
||||
|
||||
deny = NULL;
|
||||
#if defined(ALLOW_FILE) && defined(DENY_FILE)
|
||||
if ((allow = fopen(ALLOW_FILE, "r")) == NULL && errno != ENOENT)
|
||||
goto out;
|
||||
@ -423,7 +424,6 @@ allowed(username)
|
||||
Debug(DMISC, ("allow/deny enabled, %d/%d\n", !!allow, !!deny))
|
||||
#else
|
||||
allow = NULL;
|
||||
deny = NULL;
|
||||
#endif
|
||||
|
||||
if (allow)
|
||||
|
Loading…
Reference in New Issue
Block a user