Skip to content

Commit d682a12

Browse files
committed
fix function dmi_slot_segment_bus_func null point error in system slot
Case 13(System Slot): function dmi_slot_segment_bus_func may cause core dump error by null point sub_n.
1 parent e7ed843 commit d682a12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dmidecode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5236,7 +5236,7 @@ xmlNode *dmi_decode(xmlNode *prnt_n, dmi_codes_major *dmiMajor, struct dmi_heade
52365236
if(h->length < 0x11){
52375237
break;
52385238
}
5239-
dmi_slot_segment_bus_func(sub_n, WORD(data + 0x0D), data[0x0F], data[0x10]);
5239+
dmi_slot_segment_bus_func(sect_n, WORD(data + 0x0D), data[0x0F], data[0x10]);
52405240

52415241
if (h->length < 0x13){
52425242
break;

0 commit comments

Comments
 (0)