]> granicus.if.org Git - curl/commit
libssh2: use calloc as alloc function for libssh2 versions older than 1.3
authorYang Tse <yangsita@gmail.com>
Thu, 8 Sep 2011 09:08:00 +0000 (11:08 +0200)
committerYang Tse <yangsita@gmail.com>
Thu, 8 Sep 2011 09:08:00 +0000 (11:08 +0200)
commit7b7c45879e5ec6fb2f531860f483197955b2aaea
tree0a37fe35a944ab8c34870692c68ad3f2b105976c
parent81ead2c4e75a686729586ffb07d79e2efe2a60ba
libssh2: use calloc as alloc function for libssh2 versions older than 1.3

This workarounds old libssh2 versions not properly initializing
some ssh session variables, which would trigger memory debuggers
warnings on memory being used without having been initialized.
lib/ssh.c