[wing] namedpipe: fix assertion when the security descriptor is not set
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [wing] namedpipe: fix assertion when the security descriptor is not set
- Date: Wed, 24 May 2017 06:35:08 +0000 (UTC)
commit d8d00b5cf956840b662d1dc5bf1cf8e81f282eac
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date: Tue May 23 15:40:50 2017 +0200
namedpipe: fix assertion when the security descriptor is not set
wing/wingnamedpipelistener.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/wing/wingnamedpipelistener.c b/wing/wingnamedpipelistener.c
index e2370c0..a01ba94 100644
--- a/wing/wingnamedpipelistener.c
+++ b/wing/wingnamedpipelistener.c
@@ -59,7 +59,7 @@ pipe_data_new (const gchar *pipe_name,
data->pipe_name = g_strdup (pipe_name);
data->pipe_namew = g_utf8_to_utf16 (pipe_name, -1, NULL, NULL, NULL);
data->security_descriptor = g_strdup (security_descriptor);
- data->security_descriptorw = g_utf8_to_utf16 (security_descriptor, -1, NULL, NULL, NULL);
+ data->security_descriptorw = security_descriptor != NULL ? g_utf8_to_utf16 (security_descriptor, -1, NULL,
NULL, NULL) : NULL;
data->handle = INVALID_HANDLE_VALUE;
data->overlapped.hEvent = CreateEvent (NULL, /* default security attribute */
TRUE, /* manual-reset event */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]