Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib/actions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Actions::CreateSetNwTTL(uint8_t nw_ttl){

void
Actions::CreateSetMplsTTL(uint8_t mpls_ttl){
acts = (struct ofl_action_header**) xrealloc(acts, sizeof(struct ofl_action_header *) * act_num);
acts = (struct ofl_action_header**) xrealloc(acts, sizeof(struct ofl_action_header *) * (act_num +1));
struct ofl_action_mpls_ttl *a = (struct ofl_action_mpls_ttl*) xmalloc(sizeof(struct ofl_action_mpls_ttl));
a->mpls_ttl = mpls_ttl;
acts[act_num] = (struct ofl_action_header*) a;
Expand Down