1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/comms/mserver/files/patch-ae
Chris Piazza 4c1a884cb1 Add a patch to stop tcpconn from segfaulting if run with no arguments.
PR:		13381
Submitted by:	Maxim Sobolev <sobomax@altavista.net>
1999-08-28 17:06:10 +00:00

13 lines
350 B
Plaintext

--- tcpconn.c.orig Thu Aug 26 00:22:26 1999
+++ tcpconn.c Thu Aug 26 00:30:52 1999
@@ -44,6 +44,9 @@
char buff[BUFF_SIZE], device[128], *s;
*device = 0;
+ if (argc < 2)
+ errorf ("tcpconn: error: hostname required\n" \
+ "Usage: tcpconn [-d pty] [-p port] hostname[:port]\n");
for (n = 1; *argv[n] == '-'; n++)
switch (argv[n][1])
{