[gnutls-devel] GnuTLS | improve gnutls-serv EOL processing (!1314)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Sat Aug 29 18:56:49 CEST 2020




Airtower started a new discussion on src/serv.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1314#note_404202013

>  			*response = peer_print_data(session, response_length);
>  	} else {
>  		int ret;
> -		strip(request);
> +		if (strip_crlf != 0)
> +			strip(request);
>  		fprintf(stderr, "received cmd: %s\n", request);

Not calling `strip()` will effectively add a newline here, same in https://gitlab.com/gnutls/gnutls/-/blob/ae13377fb15c21705041f6e41cf8a5b9e449edbb/src/common.c#L977-978, possibly elsewhere. Not sure if that's going to be a problem.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1314#note_404202013
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20200829/a0c66898/attachment.html>


More information about the Gnutls-devel mailing list