s_addr cannot be less than zero
This commit is contained in:
parent
5ba155387f
commit
10de99000e
1 changed files with 1 additions and 1 deletions
2
opsb.c
2
opsb.c
|
@ -213,7 +213,7 @@ int opsb_cmd_check( const CmdParams *cmdparams )
|
|||
ns_free(scandata);
|
||||
return NS_SUCCESS;
|
||||
}
|
||||
if (scanuser->ip.s_addr <= 0) {
|
||||
if (scanuser->ip.s_addr == 0) {
|
||||
/* if its here, we don't have the IP address yet */
|
||||
irc_prefmsg (opsb_bot, cmdparams->source, "Error: We don't have a IP address for %s.", scanuser->name);
|
||||
ns_free(scandata);
|
||||
|
|
Reference in a new issue