Skip to content

Commit 0fbe937

Browse files
kcudniklguohan
authored andcommitted
Fix deserialize on notification status (sonic-net#53)
1 parent 8ac5c20 commit 0fbe937

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/sai_redis_notifications.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ void handle_port_state_change(
9595
{
9696
sai_port_oper_status_notification_t *oper_stat = &portdata[i];
9797

98-
sai_deserialize_primitive(data, index, oper_stat);
98+
sai_deserialize_primitive(data, index, *oper_stat);
9999
}
100100

101101
auto on_port_state_change = redis_switch_notifications.on_port_state_change;
@@ -129,7 +129,7 @@ void handle_port_event(
129129
{
130130
sai_port_event_notification_t *oper_stat = &portdata[i];
131131

132-
sai_deserialize_primitive(data, index, oper_stat);
132+
sai_deserialize_primitive(data, index, *oper_stat);
133133
}
134134

135135
auto on_port_event = redis_switch_notifications.on_port_event;

0 commit comments

Comments
 (0)