fixed a bug (my own) in create_ntc_from_cli_state()
authorGerald Carter <jerry@samba.org>
Tue, 18 Jul 2000 05:13:44 +0000 (05:13 +0000)
committerGerald Carter <jerry@samba.org>
Tue, 18 Jul 2000 05:13:44 +0000 (05:13 +0000)
--jerry

source/rpc_parse/parse_creds.c

index 672b9f28e06ec2316fd0996884bd298634cbf53e..9ffc5d7a693bc6d6a176f18ec2512ff9797de85e 100644 (file)
@@ -434,7 +434,7 @@ void create_ntc_from_cli_state (CREDS_NT *to, const struct cli_state *cli_from)
          */
         if (cli_from == NULL)
         {
-               copy_nt_creds (to, cli_from);
+               copy_nt_creds (to, NULL);
                 return;
         }
 
@@ -607,7 +607,7 @@ BOOL create_user_creds( prs_struct *ps,
                                const char* name, 
                                uint16 version, uint16 command,
                                uint32 pid,
-                               const struct user_creds *usr)
+                               struct user_creds *usr)
 {
        CREDS_CMD cmd;