]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Clear realname, email, and autherror fields between requests (Issue #246)
authorMichael R Sweet <msweet@msweet.org>
Wed, 16 Apr 2025 16:30:32 +0000 (12:30 -0400)
committerMichael R Sweet <msweet@msweet.org>
Wed, 16 Apr 2025 16:30:32 +0000 (12:30 -0400)
scheduler/client.c

index d10cce365275986bd404807896653d5a8acf78b1..77beeb7c5d709c0c0796a531c058c9de9a36db61 100644 (file)
@@ -651,12 +651,15 @@ cupsdReadClient(cupsd_client_t *con)      /* I - Client to read from */
         * Clear other state variables...
        */
 
-       con->bytes       = 0;
-       con->file        = -1;
-       con->file_ready  = 0;
-       con->pipe_pid    = 0;
-       con->username[0] = '\0';
-       con->password[0] = '\0';
+       con->bytes        = 0;
+       con->file         = -1;
+       con->file_ready   = 0;
+       con->pipe_pid     = 0;
+       con->username[0]  = '\0';
+       con->password[0]  = '\0';
+       con->realname[0]  = '\0';
+       con->email[0]     = '\0';
+       con->autherror[0] = '\0';
 
        cupsdClearString(&con->command);
        cupsdClearString(&con->options);