aboutsummaryrefslogtreecommitdiff
path: root/libssh/socket.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-05-14 00:51:08 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2010-05-14 00:51:08 +0200
commitb23b3f1d9951df3ea7cc074de40db04bdf0d3a1c (patch)
treed4fe8f4c4aa71c6cebe7d1d92dc25ea145d98cd1 /libssh/socket.c
parent46b249f5ce552bba2e0a170cb0b8052b1419924b (diff)
downloadlibssh-b23b3f1d9951df3ea7cc074de40db04bdf0d3a1c.tar.gz
libssh-b23b3f1d9951df3ea7cc074de40db04bdf0d3a1c.tar.xz
libssh-b23b3f1d9951df3ea7cc074de40db04bdf0d3a1c.zip
Sanitize libssh namespace + legacy wrappers
Diffstat (limited to 'libssh/socket.c')
-rw-r--r--libssh/socket.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libssh/socket.c b/libssh/socket.c
index 33789230..7c5a83f0 100644
--- a/libssh/socket.c
+++ b/libssh/socket.c
@@ -131,14 +131,14 @@ ssh_socket ssh_socket_new(ssh_session session) {
s->last_errno = -1;
s->fd_is_socket = 1;
s->session = session;
- s->in_buffer = buffer_new();
+ s->in_buffer = ssh_buffer_new();
if (s->in_buffer == NULL) {
SAFE_FREE(s);
return NULL;
}
- s->out_buffer=buffer_new();
+ s->out_buffer=ssh_buffer_new();
if (s->out_buffer == NULL) {
- buffer_free(s->in_buffer);
+ ssh_buffer_free(s->in_buffer);
SAFE_FREE(s);
return NULL;
}
@@ -289,8 +289,8 @@ void ssh_socket_free(ssh_socket s){
return;
}
ssh_socket_close(s);
- buffer_free(s->in_buffer);
- buffer_free(s->out_buffer);
+ ssh_buffer_free(s->in_buffer);
+ ssh_buffer_free(s->out_buffer);
SAFE_FREE(s);
}