forked from osmocom/wireshark
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:
parent
6cf6cdb56f
commit
323659d85e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue