From 1e83f7c88a1475326c9dc56e40a7329292fcd12b Mon Sep 17 00:00:00 2001 From: Zdenek Styblik Date: Tue, 2 Oct 2012 18:55:41 +0000 Subject: [PATCH] ID: 3568976 - 'sel set time' behaviour is inconsistent Commit fixes missing '*'. Without it, not only the previous commit breaks more than it fixes, but it may (eventually) lead to segfault. --- ipmitool/lib/ipmi_sel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipmitool/lib/ipmi_sel.c b/ipmitool/lib/ipmi_sel.c index 4ea4972..d1991e8 100644 --- a/ipmitool/lib/ipmi_sel.c +++ b/ipmitool/lib/ipmi_sel.c @@ -2497,7 +2497,7 @@ ipmi_sel_set_time(struct ipmi_intf * intf, const char * time_string) gt_year=tm_tmp->tm_year; gt_yday=tm_tmp->tm_yday; gt_hour=tm_tmp->tm_hour; - memset(&tm_tmp, 0, sizeof(struct tm)); + memset(&*tm_tmp, 0, sizeof(struct tm)); tm_tmp=localtime(&t); lt_year=tm_tmp->tm_year; lt_yday=tm_tmp->tm_yday;