aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2005-06-24 02:41:19 (GMT)
committerJouni Malinen <j@w1.fi>2005-06-24 02:41:19 (GMT)
commit4f2b693a94a1ea57c16cb705c91ee32fcf0c9459 (patch)
tree0429af60892b82bf0bfc6506e0e21acb58ce4ae0
parentcb952d2254101a6e7460738a87c7725ba7e3d248 (diff)
downloadhostap-history-4f2b693a94a1ea57c16cb705c91ee32fcf0c9459.zip
hostap-history-4f2b693a94a1ea57c16cb705c91ee32fcf0c9459.tar.gz
hostap-history-4f2b693a94a1ea57c16cb705c91ee32fcf0c9459.tar.bz2
Do not segfault on missing driver_param parameter in the configuration
file.
-rw-r--r--wpa_supplicant/driver_test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/driver_test.c b/wpa_supplicant/driver_test.c
index 7fdf9ed..4605791 100644
--- a/wpa_supplicant/driver_test.c
+++ b/wpa_supplicant/driver_test.c
@@ -455,6 +455,8 @@ static int wpa_driver_test_set_param(void *priv, const char *param)
size_t len;
wpa_printf(MSG_DEBUG, "%s: param='%s'", __func__, param);
+ if (param == NULL)
+ return 0;
/* TODO: create own socket, e.g.,
* /tmp/wpa_supplicant-driver-test-cli-<PID>-<cnt>-<own_addr>