- Fix a crash if dirproxy recieves an ACTION command without a parameter.

- Bump PORTREVISION

Reviewed by:	simon
Approved by:	portmgr (erwin)
Security:	http://vuxml.FreeBSD.org/a1ef3fc0-8ad0-11dc-9490-0016179b2dd5.html
This commit is contained in:
Martin Wilke 2007-11-04 18:11:54 +00:00
parent 4a9bd5d0e8
commit 6da2259dda
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=202503
2 changed files with 12 additions and 0 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= dircproxy
PORTVERSION= 1.2.0.b2
PORTREVISION= 1
CATEGORIES= irc
MASTER_SITES= http://dircproxy.securiweb.net/pub/1.2/
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.b/-beta/g}

View file

@ -0,0 +1,11 @@
--- src/irc_server.c.orig 2007-11-04 13:13:26.000000000 +0100
+++ src/irc_server.c 2007-11-04 13:13:47.000000000 +0100
@@ -1155,7 +1155,7 @@
if (!strcmp(cmsg.cmd, "ACTION")) {
irclog_log(p, IRC_LOG_ACTION, logdest, msg.src.orig,
- "%s", cmsg.paramstarts[0]);
+ "%s", (cmsg.paramstarts != NULL) ? cmsg.paramstarts[0]: "none");
} else if (!strcmp(cmsg.cmd, "DCC")
&& p->conn_class->dcc_proxy_incoming) {