]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
netstat: avoid returning uninitialized value in p_sockaddr().
authorpfg <pfg@FreeBSD.org>
Sun, 27 Mar 2016 20:02:21 +0000 (20:02 +0000)
committerpfg <pfg@FreeBSD.org>
Sun, 27 Mar 2016 20:02:21 +0000 (20:02 +0000)
commita7966dbd97f2c648ecbe826bdf4042b26fb6a0e0
treee6983595513f3ad00609938082fc4c50d3b50d5c
parent81a16edc2fd803c1ceaedc37f41ac8a6b01f7bf0
netstat: avoid returning uninitialized value in p_sockaddr().

In the case the width is less than 0, we are returning an uninitialized
value. For practical purposes the return value is ignored but initialize
it to avoid trouble.

CID: 1341619
usr.bin/netstat/route.c