diff options
Diffstat (limited to 'epan/dissectors/packet-ipsec.c')
-rw-r--r-- | epan/dissectors/packet-ipsec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/dissectors/packet-ipsec.c b/epan/dissectors/packet-ipsec.c index 7249953120..b8f2968321 100644 --- a/epan/dissectors/packet-ipsec.c +++ b/epan/dissectors/packet-ipsec.c @@ -1184,6 +1184,7 @@ compute_ascii_key(gchar **ascii_key, gchar *key) key_byte |= (guchar)hex_digit; (*ascii_key)[j] = key_byte; } + (*ascii_key)[j] = '\0'; } else @@ -1225,6 +1226,7 @@ compute_ascii_key(gchar **ascii_key, gchar *key) key_byte |= (guchar)hex_digit; (*ascii_key)[j] = key_byte; } + (*ascii_key)[j] = '\0'; } } |