diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2009-09-29 06:52:51 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2009-09-29 06:52:51 +0000 |
commit | e83dbefaaf40f2a97aec60786d72d7fe3bc5ee64 (patch) | |
tree | 7b6e63aa8d86a3c5d8e2a907c131b371e27a2043 /epan/oids.c | |
parent | e362a37cbcd2333c0bfeec54d66303e231aba1c7 (diff) |
Ensure we don't dereference a null pointer.
svn path=/trunk/; revision=30187
Diffstat (limited to 'epan/oids.c')
-rw-r--r-- | epan/oids.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/oids.c b/epan/oids.c index 36a56c9f6c..f9eb631eb3 100644 --- a/epan/oids.c +++ b/epan/oids.c @@ -459,7 +459,7 @@ static inline oid_kind_t smikind(SmiNode* sN, oid_key_t** key_p) { kl = k; } - if (implied) { + if (implied && kl) { switch (kl->key_type) { case OID_KEY_TYPE_BYTES: kl->key_type = OID_KEY_TYPE_IMPLIED_BYTES; break; case OID_KEY_TYPE_STRING: kl->key_type = OID_KEY_TYPE_IMPLIED_STRING; break; |