From b7600280f78a42df2bf8bfcc3b3be1a622e2f889 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Wed, 21 Apr 2010 22:00:59 +0000 Subject: [PATCH] * cmd_oidf(): if we don't have ha Server to authenticate against, bail with ILLEGAL_VALUE --- citadel/modules/openid/serv_openid_rp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/citadel/modules/openid/serv_openid_rp.c b/citadel/modules/openid/serv_openid_rp.c index 916fc570e..16f189e0d 100644 --- a/citadel/modules/openid/serv_openid_rp.c +++ b/citadel/modules/openid/serv_openid_rp.c @@ -723,6 +723,10 @@ void cmd_oidf(char *argbuf) { cprintf("%d NewHash() failed\n", ERROR + INTERNAL_ERROR); return; } + if (IsEmptyStr(oiddata->server)){ + cprintf("%d need a remote server to authenticate against\n", ERROR + ILLEGAL_VALUE); + return; + } cprintf("%d Transmit OpenID data now\n", START_CHAT_MODE); -- 2.30.2