aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-x509af.c
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2015-10-19 12:07:50 +0200
committerPascal Quantin <pascal.quantin@gmail.com>2015-10-19 11:28:19 +0000
commite8a37694cebe030252f028e926ee5d4fd966a812 (patch)
tree0880738cd02e8e7e1ad076497157db631dd23eec /epan/dissectors/packet-x509af.c
parent1c322a121431dfa27bcba5dcfc5915d9720a882f (diff)
X509AF: protect against a comparison with a NULL algorithm_id string
Bug: 11611 Change-Id: Ide8a26f74c99405b53acf394041ddf4a599da90a Reviewed-on: https://code.wireshark.org/review/11143 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-x509af.c')
-rw-r--r--epan/dissectors/packet-x509af.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-x509af.c b/epan/dissectors/packet-x509af.c
index d4554f2373..27d9ff3ab2 100644
--- a/epan/dissectors/packet-x509af.c
+++ b/epan/dissectors/packet-x509af.c
@@ -357,7 +357,7 @@ dissect_x509af_T_subjectPublicKey(gboolean implicit_tag _U_, tvbuff_t *tvb _U_,
/* See RFC 3279 for possible subjectPublicKey values given an Algorithm ID.
* The contents of subjectPublicKey are always explicitly tagged. */
- if (!strcmp(algorithm_id, "1.2.840.113549.1.1.1")) { /* id-rsa */
+ if (!g_strcmp0(algorithm_id, "1.2.840.113549.1.1.1")) { /* id-rsa */
offset += dissect_pkcs1_RSAPublicKey(FALSE, bs_tvb, 0, actx, tree, hf_index);
} else {