search for: 4e9591c

Displaying 1 result from an estimated 1 matches for "4e9591c".

Did you mean: 49591
2009 May 27
0
[PATCH] src/linux/device.c: Fix segfault when running without `--net'.
...e would be to check for NULL-pointers in `xstrdup' and return NULL in this case. Signed-off-by: Florian Forster <octo at verplant.org> --- src/linux/device.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/linux/device.c b/src/linux/device.c index 2e44755..4e9591c 100644 --- a/src/linux/device.c +++ b/src/linux/device.c @@ -63,7 +63,8 @@ bool setup_device(void) if(!get_config_string(lookup_config(config_tree, "Interface"), &iface)) #ifdef HAVE_LINUX_IF_TUN_H - iface = xstrdup(netname); + if (netname != NULL) + iface = xstrdup(netname);...