X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/fc939ca58f179a59fda915a9041e0fc1970cedab..460e7932744e7d48795875270a1a610a6a8dfa31:/modules/m_post.c?ds=sidebyside diff --git a/modules/m_post.c b/modules/m_post.c index d3923c4c..4d17e208 100644 --- a/modules/m_post.c +++ b/modules/m_post.c @@ -33,10 +33,11 @@ #include "modules.h" #include "s_conf.h" -static int mr_dumb_proxy(struct MsgBuf *, struct Client *, struct Client *, int, const char **); static const char post_desc[] = "Ensure Web forms/proxies cannot connect by disconnecting on POST, GET, and PUT"; +static void mr_dumb_proxy(struct MsgBuf *, struct Client *, struct Client *, int, const char **); + struct Message post_msgtab = { "POST", 0, 0, 0, 0, {{mr_dumb_proxy, 0}, mg_ignore, mg_ignore, mg_ignore, mg_ignore, mg_ignore} @@ -50,21 +51,18 @@ struct Message put_msgtab = { {{mr_dumb_proxy, 0}, mg_ignore, mg_ignore, mg_ignore, mg_ignore, mg_ignore} }; - mapi_clist_av1 post_clist[] = { &post_msgtab, &get_msgtab, &put_msgtab, NULL }; -DECLARE_MODULE_AV2(post, NULL, NULL, post_clist, NULL, NULL, NULL, NULL, post_desc); +DECLARE_MODULE_AV2(post, NULL, NULL, post_clist, NULL, NULL, NULL, NULL, post_desc); /* ** mr_dumb_proxy ** parv[1] = comment */ -static int +static void mr_dumb_proxy(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]) { exit_client(client_p, source_p, source_p, "Client Exit"); - - return 0; }