From c1bf967fb057daeb203f548d6b50306937cb1847 Mon Sep 17 00:00:00 2001 From: Mirko Vogt Date: Thu, 31 May 2012 19:23:13 +0000 Subject: [PATCH] [packages/nodogsplash] prevent nodogsplash from crashing when token/redir is not set - thanks to Moritz Warning SVN-Revision: 32017 --- .../001-crash_on_missing_rdir_param.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 net/nodogsplash/patches/001-crash_on_missing_rdir_param.patch diff --git a/net/nodogsplash/patches/001-crash_on_missing_rdir_param.patch b/net/nodogsplash/patches/001-crash_on_missing_rdir_param.patch new file mode 100644 index 0000000000..6bcf2e9f61 --- /dev/null +++ b/net/nodogsplash/patches/001-crash_on_missing_rdir_param.patch @@ -0,0 +1,18 @@ +--- a/src/http.c ++++ b/src/http.c +@@ -455,10 +455,15 @@ http_nodogsplash_decode_authtarget(reque + var = httpdGetVariableByName(r,"tok"); + if(var && var->value) { + token = var->value; ++ } else { ++ token = ""; + } ++ + var = httpdGetVariableByName(r,"redir"); + if(var && var->value) { + redir = var->value; ++ } else { ++ redir = ""; + } + + authtarget = http_nodogsplash_make_authtarget(token,redir); -- 2.30.2