commit | 6d35984286908e199e2ec9516ebbe322745bf2c2 | [log] [tgz] |
---|---|---|
author | Daniel Stenberg <[email protected]> | Tue Oct 30 12:08:17 2001 +0000 |
committer | Daniel Stenberg <[email protected]> | Tue Oct 30 12:08:17 2001 +0000 |
tree | 6d8734407393922c5d15658aef076eddf1736399 | |
parent | c046dc904ccf5d7e0a9e244497996f294bdcb6e4 [diff] [blame] |
prevent strdup()ing NULL -- Paul Harrington's report
diff --git a/lib/cookie.c b/lib/cookie.c index bac0adb..6970811 100644 --- a/lib/cookie.c +++ b/lib/cookie.c
@@ -198,7 +198,7 @@ if(NULL == co->domain) /* no domain given in the header line, set the default now */ - co->domain=strdup(domain); + co->domain=domain?strdup(domain):NULL; } else { /* This line is NOT a HTTP header style line, we do offer support for