Commit 89f2b1eb authored by rswindell's avatar rswindell
Browse files

lookup_netuser() to return false if passed a NULL or empty string.

parent 3c30499b
......@@ -66,7 +66,7 @@ bool sbbs_t::lookup_netuser(char *into)
int i;
FILE *stream;
if(strchr(into,'@'))
if(into == NULL || into[0] == 0 || strchr(into,'@'))
return(false);
SAFECOPY(to,into);
strupr(to);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment