+2003-04-22 Ion Badulescu <ionut@moisil.badula.org>
+
+ * conf/transp/transp_sockets.c (create_amq_service): Ugly *BSD fix for
+ an RPC library DoS issue (original patch from Martin Blapp,
+ massaged into something more digestable by me)
+
2003-04-13 Erez Zadok <ezk@agora.fsl.cs.sunysb.edu>
* doc/Makefile.am (DVIPS): use proper options for dvips.
*
* %W% (Berkeley) %G%
*
- * $Id: transp_sockets.c,v 1.6.2.8 2002/12/27 22:45:00 ezk Exp $
+ * $Id: transp_sockets.c,v 1.6.2.9 2003/04/23 03:24:09 ib42 Exp $
*
* Socket specific utilities.
* -Erez Zadok <ezk@cs.columbia.edu>
plog(XLOG_FATAL, "cannot create tcp service for amq: soAMQp=%d", *tcp_soAMQp);
return 2;
}
+
+#ifdef SVCSET_CONNMAXREC
+ /*
+ * This is *BSD at its best.
+ * They just had to do things differently than everyone else
+ * so they fixed a library DoS issue by forcing client-side changes...
+ */
+#ifndef RPC_MAXDATASIZE
+#define RPC_MAXDATASIZE 9000
+#endif
+ {
+ int maxrec = RPC_MAXDATASIZE;
+ SVC_CONTROL(*tcp_amqpp, SVCSET_CONNMAXREC, &maxrec);
+ }
+#endif
}
/* next create UDP service */