aboutsummaryrefslogtreecommitdiffstats
path: root/src/libfast
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2010-12-15 12:15:12 +0100
committerMartin Willi <martin@revosec.ch>2011-01-05 16:46:02 +0100
commit1038d9fee53f4c678f41959a8492ee8d1965a815 (patch)
treef83a9c7b058630834540c4d53b7fdb7184e06c69 /src/libfast
parentb0892d094c4295c0d02e2a7c026304020d86a847 (diff)
downloadstrongswan-1038d9fee53f4c678f41959a8492ee8d1965a815.tar.bz2
strongswan-1038d9fee53f4c678f41959a8492ee8d1965a815.tar.xz
Added a null-safe strdup variant
Diffstat (limited to 'src/libfast')
-rw-r--r--src/libfast/request.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libfast/request.c b/src/libfast/request.c
index 89e91b377..a3db70e82 100644
--- a/src/libfast/request.c
+++ b/src/libfast/request.c
@@ -120,7 +120,7 @@ static char *getenv_cb(void *null, const char *key)
private_request_t *this = (private_request_t*)thread_this->get(thread_this);
value = FCGX_GetParam(key, this->req.envp);
- return value ? strdup(value) : NULL;
+ return strdupnull(value);
}
/**