mirror of
https://github.com/sheumann/hush.git
synced 2024-12-27 01:32:08 +00:00
Patch from Erik Hovland, via Tito.
This commit is contained in:
parent
9c6f9552ec
commit
176f2df69b
@ -1311,9 +1311,9 @@ static const char *get_variable (const char *variable, void *info)
|
||||
/* compare_string_array returns i>=0 */
|
||||
i=compare_string_array(field_names, variable);
|
||||
|
||||
if ( i > 6 && (i > 1 && gv_info == NULL))
|
||||
if ( i > 6 || i < 0 || (i > 1 && gv_info == NULL))
|
||||
return (NULL);
|
||||
if( i >= 0 || i <= 3)
|
||||
if( i >= 0 && i <= 3)
|
||||
{
|
||||
debug_msg_logger(LOG_INFO, "%s: i=%d %s", __FUNCTION__, i ,field_names[i+7]);
|
||||
return(field_names[i+7]);
|
||||
|
Loading…
Reference in New Issue
Block a user