dcerpc: fix Called function pointer is null (null dereference) found by Clang Analyzer

Change-Id: Idf98bcf617d4d6343aa233e42898cf5f26b08e33
Reviewed-on: https://code.wireshark.org/review/13974
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Alexis La Goutte 2016-02-16 21:37:38 +01:00 committed by Michael Mann
parent 6cf6cdb56f
commit 323659d85e
1 changed files with 1 additions and 1 deletions

View File

@ -2414,7 +2414,7 @@ dissect_ndr_ucvarray_core(tvbuff_t *tvb, gint offset, packet_info *pinfo,
pinfo, tree, di, drep);
if (offset <= old_offset)
THROW(ReportedBoundsError);
} else {
} else if (fnct_bytes) {
for (i=0 ;i<di->array_actual_count; i++) {
old_offset = offset;
offset = (*fnct_bytes)(tvb, offset, pinfo, tree, di, drep);