diff options
Diffstat (limited to 'source3/utils/net_g_lock.c')
-rw-r--r-- | source3/utils/net_g_lock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/net_g_lock.c b/source3/utils/net_g_lock.c index bfb9a225abd..f8a7a8b6202 100644 --- a/source3/utils/net_g_lock.c +++ b/source3/utils/net_g_lock.c @@ -175,7 +175,7 @@ done: TALLOC_FREE(g_ctx); TALLOC_FREE(msg); TALLOC_FREE(ev); - return ret; + return ret < 0 ? -1 : ret; } int net_g_lock(struct net_context *c, int argc, const char **argv) |