From: Adam Dickmeiss Date: Fri, 8 Nov 2013 18:07:34 +0000 (+0100) Subject: Fix check for auth slash split PAZ-899 X-Git-Tag: v1.6.36~6 X-Git-Url: http://git.indexdata.com/?p=pazpar2-moved-to-github.git;a=commitdiff_plain;h=dde062d8bdbf6409126ba130374ce7d0c91135f1 Fix check for auth slash split PAZ-899 --- diff --git a/src/connection.c b/src/connection.c index d2c9b70..b499b9d 100644 --- a/src/connection.c +++ b/src/connection.c @@ -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) {