summaryrefslogtreecommitdiffstats
path: root/tcpsyslog.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-30 13:20:58 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-30 13:20:58 +0000
commit2dd6d08b5d4ec053095d532dc1540f6630553c9b (patch)
treed5f097c683603346f3dddcc62a08b2462307019a /tcpsyslog.c
parentf8ab81bbb46f6ac1e2a27178356f6122cf90ec07 (diff)
downloadrsyslog-2dd6d08b5d4ec053095d532dc1540f6630553c9b.tar.gz
rsyslog-2dd6d08b5d4ec053095d532dc1540f6630553c9b.tar.xz
rsyslog-2dd6d08b5d4ec053095d532dc1540f6630553c9b.zip
- fixed a bug that could cause invalid string handling via strerror_r
varmojfekoj provided the patch - many thanks!
Diffstat (limited to 'tcpsyslog.c')
-rw-r--r--tcpsyslog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tcpsyslog.c b/tcpsyslog.c
index c7693102..311e4308 100644
--- a/tcpsyslog.c
+++ b/tcpsyslog.c
@@ -1021,7 +1021,7 @@ int TCPSendCreateSocket(struct addrinfo *addrDest)
} else {
char errStr[1024];
dbgprintf("create tcp connection failed, reason %s",
- strerror_r(errno, errStr, sizeof(errStr)));
+ rs_strerror_r(errno, errStr, sizeof(errStr)));
}
}
@@ -1032,7 +1032,7 @@ int TCPSendCreateSocket(struct addrinfo *addrDest)
}
else {
char errStr[1024];
- dbgprintf("couldn't create send socket, reason %s", strerror_r(errno, errStr, sizeof(errStr)));
+ dbgprintf("couldn't create send socket, reason %s", rs_strerror_r(errno, errStr, sizeof(errStr)));
}
r = r->ai_next;
}