s3:lib/netapi/examples: fix pointer from integer error in nltest.c
authorStefan Metzmacher <metze@samba.org>
Wed, 26 Feb 2014 19:16:26 +0000 (20:16 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 25 Nov 2014 06:25:44 +0000 (07:25 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/netapi/examples/netlogon/nltest.c

index f75a995328e2d3b72896d21042082d2098c66696..9f96bdaef4e5e163b397af15c7ef2aa3051c16fd 100644 (file)
@@ -289,7 +289,7 @@ int main(int argc, const char **argv)
                        status = I_NetLogonControl2(opt_server,
                                                    NETLOGON_CONTROL_SET_DBFLAG,
                                                    query_level,
-                                                   (uint8_t *)opt_dbflag,
+                                                   (uint8_t *)&opt_dbflag,
                                                    &buffer);
                        if (status != 0) {
                                fprintf(stderr, "I_NetlogonControl failed: Status = %d 0x%x %s\n",