Commit 04f03d03 authored by Kevin Wolf's avatar Kevin Wolf Committed by Antoine Kaufmann
Browse files

tcpip: Pagefault beim Hinzufuegen neuer Routen


! tcpip: Wenn eine neue Route angegeben wird, muss sie auch erstmal
  angelegt werden, sonst ist sie ziemlich NULL
Signed-off-by: Kevin Wolf's avatarKevin Wolf <kevin@tyndur.org>
No related merge requests found
Showing with 6 additions and 0 deletions
+6 -0
......@@ -501,6 +501,12 @@ int lostio_route_close(lostio_filehandle_t *handle)
if (failed == FALSE)
{
struct routing_entry *entry = enum_routing_entry(0);
if (entry == NULL) {
entry = calloc(1, sizeof(*entry));
add_routing_entry(entry);
}
entry->target = ips[0];
entry->gateway = ips[1];
entry->subnet = ips[2];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment