/*********************************************************
- * Copyright (C) 2011-2016 VMware, Inc. All rights reserved.
+ * Copyright (C) 2011-2016,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
atoi(VGAUTH_PROTOCOL_VERSION));
packet = Proto_MakeErrorReply(conn, req, err,
"sessionRequest failed; version mismatch");
+ goto send_err;
}
err = ServiceStartUserConnection(req->reqData.sessionReq.userName,
pipeName);
}
+send_err:
err = ServiceNetworkWriteData(conn, strlen(packet), packet);
if (err != VGAUTH_E_OK) {
Warning("%s: failed to send SessionReq reply\n", __FUNCTION__);