[Samba] Segmentation fault in smbclient v2.2.9.
Jeremy Allison
jra at samba.org
Wed Jun 23 18:02:31 GMT 2004
On Wed, Jun 23, 2004 at 01:24:07AM +0400, Igor Yu. Zhbanov wrote:
> Hello!
> I have found a bug in smbclient v2.2.9.
>
> ----- source/client/client.c -----
> static void readline_callback(void)
> {
> fd_set fds;
> struct timeval timeout;
> static time_t last_t;
> time_t t;
>
> t = time(NULL);
>
> if (t - last_t < 5) return;
>
> last_t = t;
>
> again:
> FD_ZERO(&fds);
> FD_SET(cli->fd,&fds);
> ^^^^^^^
> Segmentation fault was here since cli->fs == -1
> This was happen when smbd crashes (bug in my VFS module) and return READ_EOF.
> And cli->fd became -1.
This has been fixed in Samba 3.0.x code. Thanks for the report !
Jeremy.
More information about the samba
mailing list