Skip to content

Commit

Permalink
Fix deserialize on notification status (sonic-net#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
kcudnik authored and lguohan committed Aug 11, 2016
1 parent 8ac5c20 commit 0fbe937
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/sai_redis_notifications.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void handle_port_state_change(
{
sai_port_oper_status_notification_t *oper_stat = &portdata[i];

sai_deserialize_primitive(data, index, oper_stat);
sai_deserialize_primitive(data, index, *oper_stat);
}

auto on_port_state_change = redis_switch_notifications.on_port_state_change;
Expand Down Expand Up @@ -129,7 +129,7 @@ void handle_port_event(
{
sai_port_event_notification_t *oper_stat = &portdata[i];

sai_deserialize_primitive(data, index, oper_stat);
sai_deserialize_primitive(data, index, *oper_stat);
}

auto on_port_event = redis_switch_notifications.on_port_event;
Expand Down

0 comments on commit 0fbe937

Please sign in to comment.