summaryrefslogtreecommitdiffstats
path: root/server/Sample/sfreerdp.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 01:25:11 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 01:25:11 +0000
commit941f9937e0744d18de4cc0afa71e0caa925d82ac (patch)
tree67872b86dbf72d73e91188bf8de12594668fe4aa /server/Sample/sfreerdp.c
parentAdding upstream version 3.3.0+dfsg1. (diff)
downloadfreerdp3-941f9937e0744d18de4cc0afa71e0caa925d82ac.tar.xz
freerdp3-941f9937e0744d18de4cc0afa71e0caa925d82ac.zip
Adding upstream version 3.5.0+dfsg1.upstream/3.5.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'server/Sample/sfreerdp.c')
-rw-r--r--server/Sample/sfreerdp.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/server/Sample/sfreerdp.c b/server/Sample/sfreerdp.c
index f39a747..fbdd1c3 100644
--- a/server/Sample/sfreerdp.c
+++ b/server/Sample/sfreerdp.c
@@ -537,6 +537,7 @@ static BOOL test_sleep_tsdiff(UINT32* old_sec, UINT32* old_usec, UINT32 new_sec,
static BOOL tf_peer_dump_rfx(freerdp_peer* client)
{
+ BOOL rc = FALSE;
wStream* s = NULL;
UINT32 prev_seconds = 0;
UINT32 prev_useconds = 0;
@@ -559,8 +560,9 @@ static BOOL tf_peer_dump_rfx(freerdp_peer* client)
update = client->context->update;
WINPR_ASSERT(update);
- if (!(pcap_rfx = pcap_open(info->test_pcap_file, FALSE)))
- return FALSE;
+ pcap_rfx = pcap_open(info->test_pcap_file, FALSE);
+ if (!pcap_rfx)
+ goto fail;
prev_seconds = prev_useconds = 0;
@@ -589,9 +591,11 @@ static BOOL tf_peer_dump_rfx(freerdp_peer* client)
break;
}
+ rc = TRUE;
+fail:
Stream_Free(s, TRUE);
pcap_close(pcap_rfx);
- return TRUE;
+ return rc;
}
static DWORD WINAPI tf_debug_channel_thread_func(LPVOID arg)