summaryrefslogtreecommitdiff
path: root/epan/uat.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2010-08-04 13:34:50 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2010-08-04 13:34:50 +0000
commit8e314dbb8f2f2533d20cff9660f66772cdceb094 (patch)
treeb4ceb34c8f0508c6a1eae8518cb163ab6d24bbcb /epan/uat.c
parent1ce4466261985a9039b5bb392081c7c2bad5e19e (diff)
downloadwireshark-8e314dbb8f2f2533d20cff9660f66772cdceb094.tar.gz
Ensure we don't index into a NULL pointer.
svn path=/trunk/; revision=33710
Diffstat (limited to 'epan/uat.c')
-rw-r--r--epan/uat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/uat.c b/epan/uat.c
index e6d72a3247..a2081c1b39 100644
--- a/epan/uat.c
+++ b/epan/uat.c
@@ -404,6 +404,7 @@ gboolean uat_fld_chk_oid(void* u1 _U_, const char* strptr, unsigned len, const v
if (strptr == NULL) {
*err = "NULL pointer";
+ return FALSE;
}
for(i = 0; i < len; i++)