* cmd_oidf(): if we don't have ha Server to authenticate against, bail with ILLEGAL_VALUE
authorWilfried Göesgens <willi@citadel.org>
Wed, 21 Apr 2010 22:00:59 +0000 (22:00 +0000)
committerWilfried Göesgens <willi@citadel.org>
Wed, 21 Apr 2010 22:00:59 +0000 (22:00 +0000)
citadel/modules/openid/serv_openid_rp.c

index 916fc570ec91d9ac6448dbf752deae045de062c2..16f189e0d2f58e2f04591bd14a8b226db709d12d 100644 (file)
@@ -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);