This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: accept() seg faults using non-global address for buffer or socket structure


On Fri, Feb 07, 2003 at 10:34:54PM -0700, J. J. Ekstrom wrote:
> I've looked at every mailing list and FAQ for limitations on the Cygwin
> accept() I can't find this one.
> [...]
>           if ((new_s = accept(s, (struct sockaddr *)&sin, &len)) < 0)

Cockpit error.  Try initializing len before calling accept(2).

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]