aboutsummaryrefslogtreecommitdiff
path: root/ssh/tomsg_clientlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssh/tomsg_clientlib.c')
-rw-r--r--ssh/tomsg_clientlib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ssh/tomsg_clientlib.c b/ssh/tomsg_clientlib.c
index fb783e3..cf02208 100644
--- a/ssh/tomsg_clientlib.c
+++ b/ssh/tomsg_clientlib.c
@@ -436,14 +436,14 @@ static bool check_readable(int fd) {
return pfd.revents & (POLLIN | POLLHUP | POLLERR);
}
-void tomsg_async_connect_event_nullify(struct tomsg_async_connect_event *event) {
- switch (event->type) {
+void tomsg_async_connect_event_nullify(struct tomsg_async_connect_event event) {
+ switch (event.type) {
case TOMSG_AC_HOSTKEY:
- free(event->key.hostkey);
+ free(event.key.hostkey);
break;
case TOMSG_AC_SUCCESS:
- tomsg_close(event->client);
+ tomsg_close(event.client);
break;
}
}