aboutsummaryrefslogtreecommitdiff
path: root/libssh/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'libssh/buffer.c')
-rw-r--r--libssh/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libssh/buffer.c b/libssh/buffer.c
index b511a8cd..9cdf8599 100644
--- a/libssh/buffer.c
+++ b/libssh/buffer.c
@@ -150,7 +150,7 @@ STRING *buffer_get_ssh_string(BUFFER *buffer){
hostlen=ntohl(stringlen);
/* verify if there is enough space in buffer to get it */
if(buffer->pos+hostlen>buffer->used)
- return 0; /* it is indeed */
+ return NULL; /* it is indeed */
str=string_new(hostlen);
if(buffer_get_data(buffer,str->string,hostlen)!=hostlen){
ssh_say(0,"buffer_get_ssh_string: oddish : second test failed when first was successful. len=%d",hostlen);