diff options
author | Marcelo Araujo <araujo@FreeBSD.org> | 2010-07-01 22:54:20 +0000 |
---|---|---|
committer | Marcelo Araujo <araujo@FreeBSD.org> | 2010-07-01 22:54:20 +0000 |
commit | 90e1b7737678e01acce155be8c2ec1a5879839b3 (patch) | |
tree | 917bf3955d4860603c1118e01cf7abc359560d3f /security/audit/files/patch-src_lib_packet.c | |
parent | 685a461c0052ddce47c13591daa9f2f9ff8a34c6 (diff) | |
download | ports-90e1b7737678e01acce155be8c2ec1a5879839b3.tar.gz ports-90e1b7737678e01acce155be8c2ec1a5879839b3.zip |
Notes
Diffstat (limited to 'security/audit/files/patch-src_lib_packet.c')
-rw-r--r-- | security/audit/files/patch-src_lib_packet.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/security/audit/files/patch-src_lib_packet.c b/security/audit/files/patch-src_lib_packet.c deleted file mode 100644 index a6f960ca5a1a..000000000000 --- a/security/audit/files/patch-src_lib_packet.c +++ /dev/null @@ -1,44 +0,0 @@ ---- 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; -- void *data; -+ char *data; - - if (p == NULL || _data == NULL || size <= 0) - return; - -- data = (void *) _data; -+ 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); - } -@@ -607,14 +607,16 @@ - packet_get_raw(PACKET *p, void *data, ssize_t size) - { - ssize_t readed; -+ char *cdata; - - if (p == NULL || data == NULL || size <= 0) - return; - -+ cdata = (char *)data; - while (size) { -- readed = buf_get_raw(p->pkt_rbuf, data, size); -+ readed = buf_get_raw(p->pkt_rbuf, cdata, size); - size -= readed; -- (char *) data += readed; -+ cdata += readed; - if (size) - _packet_read(p); - } |