Skip to content

Commit

Permalink
Merge pull request #1040 from c-leroy/master
Browse files Browse the repository at this point in the history
drouting: Fix out-of-bound initialization
  • Loading branch information
bogdan-iancu committed Feb 4, 2017
2 parents dd41b34 + b11ce97 commit fb0d97d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/drouting/routing.c
Expand Up @@ -111,7 +111,7 @@ int parse_destination_list(rt_data_t* rd, char *dstlist,
LM_ERR("not enough shm mem to resize\n");
goto error;
}
memset( p+pgwl_size, 0, 2*pgwl_size*sizeof(pgw_list_t));
memset( p+pgwl_size, 0, pgwl_size*sizeof(pgw_list_t));
memcpy( p, pgwl, pgwl_size*sizeof(pgw_list_t));
pkg_free(pgwl);
pgwl_size*=2;
Expand Down

0 comments on commit fb0d97d

Please sign in to comment.