summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/utils/net_rap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/net_rap.c b/source3/utils/net_rap.c
index 2cc42c89e9..afda222740 100644
--- a/source3/utils/net_rap.c
+++ b/source3/utils/net_rap.c
@@ -825,7 +825,7 @@ static int rap_user_add(struct net_context *c, int argc, const char **argv)
return -1;
safe_strcpy((char *)userinfo.user_name, argv[0], sizeof(userinfo.user_name)-1);
- if (c->opt_flags == -1)
+ if (c->opt_flags == 0)
c->opt_flags = 0x21;
userinfo.userflags = c->opt_flags;