room/floor/site instead of the number. citserver wants a string.
* ipc_c_tcp.c: don't call SSL_shutdown() from connection_died(). This just
causes it to segfault because there's no valid socket.
$Log$
+ Revision 601.112 2003/01/16 04:17:02 ajc
+ * citadel_ipc.c: when issuing a SPEX command, send the string value for
+ room/floor/site instead of the number. citserver wants a string.
+ * ipc_c_tcp.c: don't call SSL_shutdown() from connection_died(). This just
+ causes it to segfault because there's no valid socket.
+
Revision 601.111 2003/01/16 03:41:45 ajc
* Renamed "dynloader" to "serv_extensions" globally. We don't want people
to think we have a dynamic loader, do we? :)
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
struct ExpirePolicy *policy, char *cret)
{
char aaa[38];
+ char *whichvals[] = { "room", "floor", "site" };
if (!cret) return -2;
if (which < 0 || which > 2) return -2;
if (policy->expire_mode < 0 || policy->expire_mode > 3) return -2;
if (policy->expire_mode >= 2 && policy->expire_value < 1) return -2;
- sprintf(aaa, "SPEX %d|%d|%d", which,
+ sprintf(aaa, "SPEX %s|%d|%d", whichvals[which],
policy->expire_mode, policy->expire_value);
return CtdlIPCGenericCommand(ipc, aaa, NULL, 0, NULL, NULL, cret);
}
"Please re-connect and log in again.\n",
strerror(errno));
#ifdef HAVE_OPENSSL
+
+ /* ...don't try to shut down a connection on a dead socket?
SSL_shutdown(ipc->ssl);
+ */
+
SSL_free(ipc->ssl);
ipc->ssl = NULL;
#endif
memcpy(&exp, &config.c_ep, sizeof(struct ExpirePolicy));
}
else {
- cprintf("%d Invalid keyword.\n", ERROR);
+ cprintf("%d Invalid keyword \"%s\"\n", ERROR, which);
return;
}
}
else {
- cprintf("%d Invalid keyword.\n", ERROR);
+ cprintf("%d Invalid keyword \"%s\"\n", ERROR, which);
return;
}