diff options
Diffstat (limited to 'security/audit/files/patch-src_lib_packet.c')
-rw-r--r-- | security/audit/files/patch-src_lib_packet.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/security/audit/files/patch-src_lib_packet.c b/security/audit/files/patch-src_lib_packet.c index 1907180ccf69..a6f960ca5a1a 100644 --- a/security/audit/files/patch-src_lib_packet.c +++ b/security/audit/files/patch-src_lib_packet.c @@ -1,6 +1,6 @@ ---- src/lib/packet.c.orig 2007-10-17 08:15:35.000000000 +0200 -+++ src/lib/packet.c 2007-10-17 08:04:21.000000000 +0200 -@@ -546,16 +546,16 @@ void +--- src/lib/packet.c.orig 2001-10-06 00:04:06.000000000 +0200 ++++ src/lib/packet.c 2007-10-17 09:44:32.000000000 +0200 +@@ -546,19 +546,19 @@ packet_put_raw(PACKET *p, const void *_data, ssize_t size) { ssize_t written; @@ -14,13 +14,16 @@ + data = (char *) _data; while (size) { written = buf_put_raw(p->pkt_wbuf, data, size); + if (written < 0) + fatal(EX_SOFTWARE, "Invalid internal packet structure. " + "Connection aborted."); size -= written; - (char *) data += written; + data += written; if (size) _packet_write(p); } -@@ -604,14 +604,16 @@ void +@@ -607,14 +607,16 @@ packet_get_raw(PACKET *p, void *data, ssize_t size) { ssize_t readed; |