Fix check for auth slash split PAZ-899
[pazpar2-moved-to-github.git] / src / connection.c
index d2c9b70..b499b9d 100644 (file)
@@ -452,7 +452,7 @@ static int connection_connect(struct connection *con, iochan_man_t iochan_man)
     {
         /* allow splitting user and reset with a blank always */
         const char *cp1 = strchr(auth, ' ');
-        if (!cp1 && sru && *sru_version)
+        if (!cp1 && sru && *sru)
             cp1 =  strchr(auth, '/');
         if (!cp1)
         {