Fix copying rikeyid value

This commit is contained in:
Cameron Gutman 2021-07-24 07:13:55 -05:00
parent b4ef1dde42
commit 296c8de759

View File

@ -677,7 +677,7 @@ int gs_start_app(PSERVER_DATA server, STREAM_CONFIGURATION *config, int appId, b
srand(time(NULL));
char url[4096];
u_int32_t rikeyid = 0;
memset(&rikeyid, config->remoteInputAesIv, 4);
memcpy(&rikeyid, config->remoteInputAesIv, 4);
rikeyid = htonl(rikeyid);
char rikey_hex[33];
bytes_to_hex(config->remoteInputAesKey, rikey_hex, 16);