]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - scheduler/client.c
Fix authentication issues.
[thirdparty/cups.git] / scheduler / client.c
index 0fd724daea10c6630d4dfaea58ef4c5e5dd42b8f..775265a8940c87533d7bf70bd11f59928e2f6352 100644 (file)
@@ -2390,6 +2390,8 @@ cupsdSendHeader(
            name;
           name = (char *)cupsArrayNext(con->best->names))
       {
+        cupsdLogClient(con, CUPSD_LOG_DEBUG2, "cupsdSendHeader: require \"%s\"", name);
+
 #ifdef HAVE_AUTHORIZATION_H
        if (!_cups_strncasecmp(name, "@AUTHKEY(", 9))
        {
@@ -2415,7 +2417,7 @@ cupsdSendHeader(
       }
 
       if (need_local)
-       strlcpy(auth_key, ", Local", auth_size);
+       strlcat(auth_key, ", Local", auth_size);
     }
 
     if (auth_str[0])