[tyndur-devel] [PATCH] tcpip: Fix für Bug 73 - tcpip ohne Netzwerkkarte gibt rot
Patrick Pokatilo ·
! tcp vertraut jetzt nicht mehr darauf, dass auch ein device in der route vorhanden ist Signed-off-by: Patrick Pokatilo <shyxormz at asxsoft.de> --- src/modules/tcpip/tcp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/modules/tcpip/tcp.c b/src/modules/tcpip/tcp.c index 38f9761..358100e 100644 --- a/src/modules/tcpip/tcp.c +++ b/src/modules/tcpip/tcp.c @@ -191,7 +191,7 @@ struct tcp_connection* tcp_open_connection(uint32_t ip, uint16_t port) struct routing_entry* route = get_routing_entry(ip); uint64_t timeout; - if (route == NULL) { + if ((route == NULL) || (route->device == NULL)) { return NULL; } -- 1.7.0.4