summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rdp/rdp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/rdp/rdp.c b/rdp/rdp.c
index 4126e7d0..0f8dc540 100644
--- a/rdp/rdp.c
+++ b/rdp/rdp.c
@@ -209,6 +209,11 @@ lib_mod_end(struct mod* mod)
mod->rdp_layer = 0;
free_stream(mod->in_s);
mod->in_s = 0;
+ if (mod->sck != 0)
+ {
+ g_tcp_close(mod->sck);
+ mod->sck = 0;
+ }
return 0;
}