]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
cgi-bin/var.c: Fix return value if the text is invalid
authorzdohnal <zdohnal@redhat.com>
Thu, 16 May 2024 13:45:53 +0000 (15:45 +0200)
committerGitHub <noreply@github.com>
Thu, 16 May 2024 13:45:53 +0000 (15:45 +0200)
In `cgiGetTextfield()`, if the original value contains double quote, which is forbidden for text, we free the variable and move the next variable from array to its place. However, the return value still contains the original value of freed pointer, and shows garbage when used.

Set it NULL, since we don't have any value to return for the requested name.


Trivial merge