connect() bug found and fixed (uninitialized pointer)

[ Available lists | Index of freebsd-bugs | Month of Jun 1995 | Week of 8 Jun 1995 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Matt Dillon <dillon@best.com>
Date
8 Jun 1995 19:17:32
Subject
connect() bug found and fixed (uninitialized pointer)
Message-ID
199506090217.TAA13416@shell1.best.com


[ Hide this part ]
    In case Dima didn't get this off to you, there's a bug in
netinet/tcp_usrreq.c: tcp_connect()... the ifaddr is left
uninitialized in the case where in_pcbladdr() fails. The fix
is to check the error code from in_pcbladdr() and to return
it rather then fall through to the remaining code if it comes
back non-zero.

I stuck a printf() in there to catch the condition as well just to
see how often it occured... got about a hit every 10 minutes
on our (very busy) FTP/WWW server from ftpd.

Gotta quick question for you guys too: Is it safe to create
UFS partitions greater then 2GB ?

-Matt

Matthew Dillon VP Engineering, BEST Internet Communications, Inc.
<dillon@best.com>, <dillon@apollo.west.oic.com>
[always include a portion of the original email in any response!]


Elapsed time: 0.084 seconds