]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/other/smux/utils.cpp
Prevent memory leak in smux plugin
[stg.git] / projects / stargazer / plugins / other / smux / utils.cpp
index a67314cb98757b342bfee8099246613a6dd7a5bd..ff7bb590241d898369900925810e8312dbf7074e 100644 (file)
@@ -227,7 +227,9 @@ GetResponse_PDU_t msg;
 
 memset(&msg, 0, sizeof(msg));
 
-msg.request_id = getRequest->request_id;
+long id = 0;
+asn_INTEGER2long(&getRequest->request_id, &id);
+asn_long2INTEGER(&msg.request_id, id);
 asn_long2INTEGER(&msg.error_status, errorStatus);
 asn_long2INTEGER(&msg.error_index, errorIndex);