| commit: | 14aadc420ce60f91fbf1a9960d4f9a84b195bf07 | 
| author: | Chip Black  | 
| committer: | Chip Black  | 
| date: | Thu Jul 10 02:24:14 2014 -0500 | 
| parents: | a06b78f6b47c6e5287ea9a5c935afea4ded6e0b8 | 
diff --git a/common/app.c b/common/app.c line changes: +5/-0 index 2fad96e..01d5768 --- a/common/app.c +++ b/common/app.c
@@ -42,6 +42,11 @@ int parse_url_info(const char *url, struct url_info *info) { } int parse_auth_cookie(const char *str, struct auth_cookie *cookie) { + if (str == NULL) + return 0; + if (cookie == NULL) + return 0; + char *token_begin = strchr(str, '/'); if (token_begin == NULL) { return 0;