Remove redundant message in AddUserToTokenDacl().
authorNoah Misch <noah@leadboat.com>
Thu, 7 Apr 2016 03:40:51 +0000 (23:40 -0400)
committerNoah Misch <noah@leadboat.com>
Thu, 7 Apr 2016 03:40:51 +0000 (23:40 -0400)
GetTokenUser() will have reported an adequate error message.  These
error conditions almost can't happen, so users are unlikely to observe
this change.

Reviewed by Tom Lane and Stephen Frost.

src/common/exec.c

index ec8c655636540ad412fceb10c0e7d2ceae8e916a..d736b02280d9cd5f121d9473962a5510e13ba062 100644 (file)
@@ -674,10 +674,7 @@ AddUserToTokenDacl(HANDLE hToken)
 
    /* Get the current user SID */
    if (!GetTokenUser(hToken, &pTokenUser))
-   {
-       log_error("could not get token user: error code %lu", GetLastError());
-       goto cleanup;
-   }
+       goto cleanup;           /* callee printed a message */
 
    /* Figure out the size of the new ACL */
    dwNewAclSize = asi.AclBytesInUse + sizeof(ACCESS_ALLOWED_ACE) +