summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/inet/ip/tnet.c
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2019-12-28 14:24:51 +0200
committerToomas Soome <tsoome@me.com>2020-03-06 22:24:46 +0200
commitab82c29b6e890d0f1241f9cd0cefda3430f46bd5 (patch)
treec92a3cf4e429e07611fa33c047acc0de4eb4fa42 /usr/src/uts/common/inet/ip/tnet.c
parent7d8deab2c421c563ab11a55e623ed48109e237af (diff)
downloadillumos-gate-ab82c29b6e890d0f1241f9cd0cefda3430f46bd5.tar.gz
12173 ip: variable may be used uninitialized in this function
Reviewed by: Dan McDonald <danmcd@joyent.com> Approved by: Robert Mustacchi <rm@fingolfin.org>
Diffstat (limited to 'usr/src/uts/common/inet/ip/tnet.c')
-rw-r--r--usr/src/uts/common/inet/ip/tnet.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/src/uts/common/inet/ip/tnet.c b/usr/src/uts/common/inet/ip/tnet.c
index e8c7b0c6e2..37a7402d52 100644
--- a/usr/src/uts/common/inet/ip/tnet.c
+++ b/usr/src/uts/common/inet/ip/tnet.c
@@ -692,7 +692,7 @@ tsol_get_pkt_label(mblk_t *mp, int version, ip_recv_attr_t *ira)
const void *src;
const ip6_t *ip6h;
cred_t *credp;
- int proto;
+ int proto;
ASSERT(DB_TYPE(mp) == M_DATA);
@@ -1477,6 +1477,9 @@ tsol_ip_forward(ire_t *ire, mblk_t *mp, const ip_recv_attr_t *ira)
*/
af = (ire->ire_ipversion == IPV4_VERSION) ? AF_INET : AF_INET6;
+ ipha = NULL;
+ ip6h = NULL;
+ gw_rhtp = NULL;
if (IPH_HDR_VERSION(mp->b_rptr) == IPV4_VERSION) {
ASSERT(ire->ire_ipversion == IPV4_VERSION);