Problem with scan.c
"Chris Flevotomos" <[email protected]>
| Newsgroups | gmane.network.irc.bopm |
|---|---|
| Message-ID | <005e01c3e80b$005c0220$0c00a8c0@karma> |
Hello all,
I have a problem while trying to scan a client.
I use the last version (bopm-3.1.2) with gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7) on a Conference Room Server (1.8.4). I found out the right connregex and as I notice it gets the hostname, but it cannot resolve it to IP to scan it.
When a user is connecting to the CR, bopm exits with Segmentation Fault. I tried to debug it as much as I could, and I saw that it cannot execute the following code, only if the user mask has a hostname (not an IP):
case OPM_ERR_BADADDR:
log_printf("OPM -> Bad address %s [%s].",
ss->manual_target->name, ss->ip);
break;
this is a part of :
if((ret = opm_scan(scs->scanner, ss->remote)) != OPM_SUCCESS)
{
switch(ret)
{
case OPM_ERR_NOPROTOCOLS:
continue;
break;
case OPM_ERR_BADADDR:
log_printf("OPM -> Bad address %s [%s].",
ss->manual_target->name, ss->ip);
break;
default:
log_printf("OPM -> Unknown error %s [%s].",
ss->manual_target->name, ss->ip);
break;
}
}
When the program tries to execute the ss-manual_target->name then it crashes.. If I remove this variable it can't resolve the hostname but it doesn't crash.
I also tried to compile it to slacware with gcc version 2.95.2 19991024 (release) but I had the same results.
May I have a tip here?
Thanks!
Chris