Uninitialised inp variable in div_bind().
Submitted by: Åge Røbekk <aagero@aage.priv.no>
This commit is contained in:
parent
8800a82c29
commit
159fe49b6f
@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: ip_divert.c,v 1.8 1997/04/03 05:14:41 davidg Exp $
|
||||
* $Id: ip_divert.c,v 1.9 1997/05/24 17:23:11 peter Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -311,6 +311,7 @@ div_bind(struct socket *so, struct mbuf *nam, struct proc *p)
|
||||
int s;
|
||||
int error;
|
||||
|
||||
imp = sotoinpcb(so);
|
||||
s = splnet();
|
||||
error = in_pcbbind(inp, nam, p);
|
||||
splx(s);
|
||||
|
Loading…
Reference in New Issue
Block a user