[gnutls-devel] Bug in DTLS-SRTP processing in gnutls-serv (with fix)

David Weber dave at veryflatcat.com
Fri Nov 14 11:01:17 CET 2014


Hi
When setting up an echo server for SRTP, gnutls-serv fails with a
"Success" message because the handling of the return codes from
gnutls_srtp_set_profile_direct() is broken.  Attached is the result of
`diff gnutls-3.3.10/src/serv.c gnutls-3.3.10.orig/src/serv.c` which
fixes the problem.

-- Dave W.
http://veryflatcat.com
-------------- next part --------------
391c391
< 		else if (ret != 0)
---
> 		else
394,397c394
< 		else fprintf(stderr,"DTLS profile set to %s\n",
< 		             OPT_ARG(SRTP_PROFILES));
< 
< 		if (ret != 0) exit(1);
---
> 		exit(1);


More information about the Gnutls-devel mailing list