aboutsummaryrefslogtreecommitdiffstats
path: root/libaxl_close.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libaxl_close.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libaxl_close.c b/libaxl_close.c
index 8964f95..b636166 100644
--- a/libaxl_close.c
+++ b/libaxl_close.c
@@ -4,5 +4,7 @@
int
libaxl_close(LIBAXL_CONNECTION *conn)
{
+ if (!conn)
+ return 0;
return liberror_close(libaxl_detach(conn));
}