summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLawrenceK <github@lklyne.co.uk>2013-01-16 14:06:57 +0000
committerLawrenceK <github@lklyne.co.uk>2013-01-16 14:06:57 +0000
commitc9e934c320d9d7895329ce6cdc526f36e2a1ce67 (patch)
treea2ce1fb9e2e0d9d3c51c2bc3136763e814cceaa8
parent36cf7532fa8712bd1235d1f99a0c1331ae151c3f (diff)
downloadxrdp-proprietary-c9e934c320d9d7895329ce6cdc526f36e2a1ce67.tar.gz
xrdp-proprietary-c9e934c320d9d7895329ce6cdc526f36e2a1ce67.zip
bug in find_name_in_lists
-rw-r--r--xrdp/xrdp_mm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xrdp/xrdp_mm.c b/xrdp/xrdp_mm.c
index 9b0de186..fc00678f 100644
--- a/xrdp/xrdp_mm.c
+++ b/xrdp/xrdp_mm.c
@@ -2010,7 +2010,7 @@ find_name_in_lists(char *inName, struct list *names)
for (index = 0; index < names->count; index++)
{
name = (char *)list_get_item(names, index);
- if ( (name != 0) && g_strncmp(name, inName, MAX_CHANNEL_NAME))
+ if ( (name != 0) && (g_strncmp(name, inName, MAX_CHANNEL_NAME) == 0) )
{
reply = index;
break; /* stop loop - item found*/