[Snort-devel] spp_portscan.c (1.7beta4)

Fyodor fygrave at ...1...
Tue Nov 21 13:13:03 EST 2000


On Tue, Nov 21, 2000 at 08:46:29AM -0700, Phil Wood wrote:
> You need to initialize logFileName so strncat will work.
> 
>             logFileName = chrootdir == NULL ?
>                 (char *) malloc(strlen(toks[3]) + 1) :
>                 (char *) malloc(strlen(toks[3]) + strlen(chrootdir) + 1);
> +           *logFileName = 0;
>             if (chrootdir)
>                 strncpy(logFileName, chrootdir, strlen(chrootdir) + 1);
>             strncat(logFileName, toks[3], strlen(toks[3]) + 1);
>         }
> 
 
 woops.. typo. I started changing malloc to calloc in spp_portscan.c but obviously missed this part, thanks :)

-- 
http://www.notlsd.net
PGP fingerprint = 56DD 1511 DDDA 56D7 99C7  B288 5CE5 A713 0969 A4D1



More information about the Snort-devel mailing list