<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 12/22/2017 12:07 PM, Frediano Ziglio
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:20171222100713.6265-4-fziglio@redhat.com">
      <pre wrap="">Signed-off-by: Frediano Ziglio <a class="moz-txt-link-rfc2396E" href="mailto:fziglio@redhat.com"><fziglio@redhat.com></a>
---
 server/red-stream.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/red-stream.c b/server/red-stream.c
index 3dbdfca82..fccad8b27 100644
--- a/server/red-stream.c
+++ b/server/red-stream.c
@@ -987,7 +987,7 @@ bool red_sasl_handle_auth_mechname(RedStream *stream, AsyncReadDone read_cb, voi
     char quoted_mechname[SASL_MAX_MECHNAME_LEN + 4];
     sprintf(quoted_mechname, ",%s,", sasl->mechname);
 
-    if (strstr(sasl->mechlist, quoted_mechname) == NULL) {
+    if (strchr(sasl->mechname, ',') || strstr(sasl->mechlist, quoted_mechname) == NULL) {
         return false;
     }
 
</pre>
    </blockquote>
    <br>
    Acked-by: Snir Sheriber <a class="moz-txt-link-rfc2396E"
      href="mailto:ssheribe@redhat.com"><ssheribe@redhat.com></a><br>
    ( Maybe can be merged with the first patch? )<br>
    Snir.<br>
  </body>
</html>