Remove some write-only fstrings
authorVolker Lendecke <vl@samba.org>
Fri, 11 Apr 2008 20:20:32 +0000 (22:20 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 11 Apr 2008 20:21:04 +0000 (22:21 +0200)
source/include/ntdomain.h
source/rpc_server/srv_pipe.c

index b89b0fea3a605098d5d81e21e3ca1c48ac591e69..74a59443c8f9b90904dcacec3bc11ff8239b0e8c 100644 (file)
@@ -232,13 +232,6 @@ typedef struct pipes_struct {
 
        struct dcinfo *dc; /* Keeps the creds data from netlogon. */
 
-       /*
-        * Windows user info.
-        */
-       fstring user_name;
-       fstring domain;
-       fstring wks;
-
        /*
         * Unix user name and credentials used when a pipe is authenticated.
         */
index 05cdb65a8317cba332852a8f91218bfd3bdf4f80..4ac9f7a6f4362ac9d23319170818b4e4b90c6f9f 100644 (file)
@@ -614,11 +614,6 @@ static bool pipe_ntlmssp_verify_final(pipes_struct *p, DATA_BLOB *p_resp_blob)
 
        ZERO_STRUCT(reply);
 
-       memset(p->user_name, '\0', sizeof(p->user_name));
-       memset(p->pipe_user_name, '\0', sizeof(p->pipe_user_name));
-       memset(p->domain, '\0', sizeof(p->domain));
-       memset(p->wks, '\0', sizeof(p->wks));
-
        /* Set up for non-authenticated user. */
        TALLOC_FREE(p->pipe_user.nt_user_token);
        p->pipe_user.ut.ngroups = 0;
@@ -656,14 +651,10 @@ static bool pipe_ntlmssp_verify_final(pipes_struct *p, DATA_BLOB *p_resp_blob)
                        return False;
                }
        }
-       
-       fstrcpy(p->user_name, a->ntlmssp_state->user);
-       fstrcpy(p->pipe_user_name, a->server_info->unix_name);
-       fstrcpy(p->domain, a->ntlmssp_state->domain);
-       fstrcpy(p->wks, a->ntlmssp_state->workstation);
 
-       DEBUG(5,("pipe_ntlmssp_verify_final: OK: user: %s domain: %s workstation: %s\n",
-               p->user_name, p->domain, p->wks));
+       DEBUG(5, ("pipe_ntlmssp_verify_final: OK: user: %s domain: %s "
+                 "workstation: %s\n", a->ntlmssp_state->user,
+                 a->ntlmssp_state->domain, a->ntlmssp_state->workstation));
 
        /*
         * Store the UNIX credential data (uid/gid pair) in the pipe structure.