/*********************************************************
- * Copyright (C) 2012-2017 VMware, Inc. All rights reserved.
+ * Copyright (C) 2012-2017,2019 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
pid = Convert_UnsignedInt32ToText(dwPid);
#endif
+ /* Value of pid is always NULL on non-Windows platforms */
+ /* coverity[dead_error_line] */
packet = g_markup_printf_escaped(VGAUTH_CONNECT_REQUEST_FORMAT,
ctx->comm.sequenceNumber,
pid ? pid : "");
Convert_UnsignedInt32ToText((unsigned int)(size_t)userHandle->token);
#endif
+ /* Value of tokenInText is always NULL on non-Windows platforms */
+ /* coverity[dead_error_line] */
packet = g_markup_printf_escaped(VGAUTH_CREATETICKET_REQUEST_FORMAT_START,
ctx->comm.sequenceNumber,
userHandle->userName,
#endif
if (err != VGAUTH_E_OK) {
+ /* Value of err is always VGAUTH_E_OK on non-Windows platforms */
+ /* coverity[dead_error_line] */
packet = Proto_MakeErrorReply(conn, req, err, "connect failed");
} else {
+ /* Value of event is always NULL on non-Windows platforms */
+ /* coverity[dead_error_line] */
packet = g_markup_printf_escaped(VGAUTH_CONNECT_REPLY_FORMAT,
req->sequenceNumber,
event ? event : "");
if (err != VGAUTH_E_OK) {
packet = Proto_MakeErrorReply(conn, req, err, "validateTicket failed");
} else {
+ /* Value of token is always NULL on non-Windows platforms */
+ /* coverity[dead_error_line] */
packet = g_markup_printf_escaped(VGAUTH_VALIDATETICKET_REPLY_FORMAT_START,
req->sequenceNumber,
userName,
SU_(validate.samlBearer.success,
"Validated SAML bearer token for user '%s'"),
userName);
+ /* Value of tokenStr is always NULL on non-Windows platforms */
+ /* coverity[dead_error_line] */
packet = g_markup_printf_escaped(VGAUTH_VALIDATESAMLBEARERTOKEN_REPLY_FORMAT_START,
req->sequenceNumber,
userName ? userName : "",