summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-05-28 18:23:53 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-05-28 18:23:53 +0200
commit8d8befaeca0d9ed3f096780e499a3231f16585c4 (patch)
tree36afcf98e28dd7bba95e383d397e4f6ad84cbf01 /plugins
parentf8d9aad08222f59ba2d27437c1e2369896452aa1 (diff)
parent23dac82b684e966490de707a44144b3ad0ce2323 (diff)
downloadrsyslog-8d8befaeca0d9ed3f096780e499a3231f16585c4.tar.gz
rsyslog-8d8befaeca0d9ed3f096780e499a3231f16585c4.tar.xz
rsyslog-8d8befaeca0d9ed3f096780e499a3231f16585c4.zip
Merge branch 'v3-stable' into beta
Conflicts: tests/Makefile.am
Diffstat (limited to 'plugins')
-rw-r--r--plugins/imudp/imudp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/imudp/imudp.c b/plugins/imudp/imudp.c
index c7e8c1d4..773ba7a4 100644
--- a/plugins/imudp/imudp.c
+++ b/plugins/imudp/imudp.c
@@ -107,7 +107,7 @@ static rsRetVal addListner(void __attribute__((unused)) *pVal, uchar *pNewVal)
udpLstnSocks = newSocks;
} else {
/* we need to add them */
- if((tmpSocks = malloc(sizeof(int) * 1 + newSocks[0] + udpLstnSocks[0])) == NULL) {
+ if((tmpSocks = malloc(sizeof(int) * (1 + newSocks[0] + udpLstnSocks[0]))) == NULL) {
dbgprintf("out of memory trying to allocate udp listen socket array\n");
/* in this case, we discard the new sockets but continue with what we
* already have