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/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ static struct route_entry *route_new_entry(struct in_addr* dest,
short metric)
{
struct route_entry *new_route=NULL;
if(!dest)
if(!dest || !port)
return NULL;
new_route = rte_zmalloc("new_route_entry", sizeof(struct route_entry), 0);
if (new_route == NULL){
Expand Down