summaryrefslogtreecommitdiff
path: root/security/ssh2/patches/patch-ap
diff options
context:
space:
mode:
authorkivinen <kivinen>2005-08-24 09:13:24 +0000
committerkivinen <kivinen>2005-08-24 09:13:24 +0000
commit6fa1656099d3cfcfa63a98bd09e9f3e466462760 (patch)
tree898273a710555cd3c21cf63f56178c10cbda750e /security/ssh2/patches/patch-ap
parent36306dd434708e246017d9a3d601e252adea0195 (diff)
downloadpkgsrc-6fa1656099d3cfcfa63a98bd09e9f3e466462760.tar.gz
Fixed ssh_encode_* calls to have casts to SshUInt32 or size_t
to get it working properly on the 64-bit platform (amd64).
Diffstat (limited to 'security/ssh2/patches/patch-ap')
-rw-r--r--security/ssh2/patches/patch-ap14
1 files changed, 14 insertions, 0 deletions
diff --git a/security/ssh2/patches/patch-ap b/security/ssh2/patches/patch-ap
new file mode 100644
index 00000000000..7d8de244a5d
--- /dev/null
+++ b/security/ssh2/patches/patch-ap
@@ -0,0 +1,14 @@
+$NetBSD: patch-ap,v 1.1 2005/08/24 09:13:24 kivinen Exp $
+
+--- apps/ssh/sshpamserver.c.orig 2003-12-03 15:17:26.000000000 +0200
++++ apps/ssh/sshpamserver.c
+@@ -306,7 +306,8 @@ int send_packet(int fd, SshPacketType pa
+
+ buffer = ssh_xbuffer_allocate();
+ ssh_encode_buffer(buffer,
+- SSH_FORMAT_UINT32, ssh_buffer_len(packet) + 1,
++ SSH_FORMAT_UINT32,
++ (SshUInt32) (ssh_buffer_len(packet) + 1),
+ SSH_FORMAT_CHAR, (unsigned int)packet_type,
+ SSH_FORMAT_DATA, ssh_buffer_ptr(packet),
+ ssh_buffer_len(packet),