[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 20:32:38 CEST 2020




Airtower commented on a discussion on src/serv.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1314#note_404209653

>  			*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);

You're right, sorry. I took only a brief glance at the `strip()` function and assumed it'd completely remove the newline as most functions named like that do.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1314#note_404209653
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/9d899f80/attachment.html>


More information about the Gnutls-devel mailing list