projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5da211
)
* cmd_oidf(): if we don't have ha Server to authenticate against, bail with ILLEGAL_VALUE
author
Wilfried Göesgens
<willi@citadel.org>
Wed, 21 Apr 2010 22:00:59 +0000
(22:00 +0000)
committer
Wilfried Göesgens
<willi@citadel.org>
Wed, 21 Apr 2010 22:00:59 +0000
(22:00 +0000)
citadel/modules/openid/serv_openid_rp.c
patch
|
blob
|
history
diff --git
a/citadel/modules/openid/serv_openid_rp.c
b/citadel/modules/openid/serv_openid_rp.c
index 916fc570ec91d9ac6448dbf752deae045de062c2..16f189e0d2f58e2f04591bd14a8b226db709d12d 100644
(file)
--- 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);