Ensure we don't index into a NULL pointer.
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 4 Aug 2010 13:34:50 +0000 (13:34 +0000)
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 4 Aug 2010 13:34:50 +0000 (13:34 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33710 f5534014-38df-0310-8fa8-9805f1628bb7

epan/uat.c

index e6d72a32475e8b737c3b97e794be97237b00f210..a2081c1b392374e9e68ed585f97fad466855c6e5 100644 (file)
@@ -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++)