diff options
author | Tim Rühsen <tim.ruehsen@gmx.de> | 2019-10-09 18:54:12 +0200 |
---|---|---|
committer | Tim Rühsen <tim.ruehsen@gmx.de> | 2019-10-13 12:27:19 +0200 |
commit | 21883fcb90dd35a2c4d8e8a005802667615fd345 (patch) | |
tree | 4b4c3a8b6fcb531137bf2eee4e948c4872d29815 /lib | |
parent | 971f8114864a50cf266fe09d179139bf728aed65 (diff) | |
download | gnutls-21883fcb90dd35a2c4d8e8a005802667615fd345.tar.gz |
lib/x509/x509.c: Check before pointer dereference in get_alt_name()
Fixes Coverity issue 1361513
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/x509/x509.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/x509/x509.c b/lib/x509/x509.c index 776ca3e1e2..62e7abe8e9 100644 --- a/lib/x509/x509.c +++ b/lib/x509/x509.c @@ -1817,7 +1817,7 @@ get_alt_name(gnutls_subject_alt_names_t san, goto cleanup; } - if (othername_oid && type == GNUTLS_SAN_OTHERNAME) { + if (othername_oid && type == GNUTLS_SAN_OTHERNAME && ooid.data) { unsigned vtype; ret = gnutls_x509_othername_to_virtual((char*)ooid.data, &oname, &vtype, &virt); if (ret >= 0) { |