aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ipsec.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2014-08-02 10:45:28 -0400
committerEvan Huus <eapache@gmail.com>2014-08-02 14:50:19 +0000
commitfde0dbe6605188b040256c774e3fa79f7e98f432 (patch)
tree74946e92446ccb408b76600fb4f70d312fddbcbd /epan/dissectors/packet-ipsec.c
parent2a3dba5ea809a25eb581879dd28e48de3a0cc7b5 (diff)
fix warning: 'cipher_hd' may be used uninitialized in this function
I don't think it's an actual issue, but the new compiler on the mac buildbots isn't smart enough to tell that. Change-Id: I759e1afe9c4011d5612be0d15282076be6f5a331 Reviewed-on: https://code.wireshark.org/review/3355 Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-ipsec.c')
-rw-r--r--epan/dissectors/packet-ipsec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/dissectors/packet-ipsec.c b/epan/dissectors/packet-ipsec.c
index 60a5a31916..add20896c2 100644
--- a/epan/dissectors/packet-ipsec.c
+++ b/epan/dissectors/packet-ipsec.c
@@ -914,6 +914,9 @@ get_esp_sa(gint protocol_typ, gchar *src, gchar *dst, gint spi,
g_snprintf(spi_string, IPSEC_SPI_LEN_MAX,"0x%08x", spi);
+ *cipher_hd = NULL;
+ *cipher_hd_created = NULL;
+
/* Check each known SA in turn */
for (i = 0, j=0; (found == FALSE) && ((i < num_sa_uat) || (j < extra_esp_sa_records.num_records)); )
{