diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-02-20 02:12:42 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-02-20 02:12:42 +0100 |
commit | a61a5992cefc2204a99f25b2395b108092098e2c (patch) | |
tree | 3b25da535866adf0458f6d172fd242fc933c77db /lib/ipmi_pef.c | |
parent | 15edf42f095e3cc26e372547ebcaaae558d0cce2 (diff) | |
parent | 97d6a2e491c6ed08473beb2c4bac47c5cbc1201a (diff) |
Merge tag 'upstream/1.8.16'
Upstream version 1.8.16
Diffstat (limited to 'lib/ipmi_pef.c')
-rw-r--r-- | lib/ipmi_pef.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ipmi_pef.c b/lib/ipmi_pef.c index 154bf40..1beebf0 100644 --- a/lib/ipmi_pef.c +++ b/lib/ipmi_pef.c @@ -674,7 +674,7 @@ ipmi_pef_list_policies(struct ipmi_intf * intf) tbl_size = ipmi_pef_get_policy_table(intf, &ptbl); if (!tbl_size) { - if (!ptbl) { + if (ptbl != NULL) { free(ptbl); ptbl = NULL; } @@ -808,7 +808,7 @@ ipmi_pef_get_info(struct ipmi_intf * intf) uint8_t actions, tbl_size; tbl_size = ipmi_pef_get_policy_table(intf, &ptbl); - if (!ptbl) { + if (ptbl != NULL) { free(ptbl); ptbl = NULL; } |