[polypaudio-commits] r536 - /trunk/src/polyp/context.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Mon Feb 20 15:31:38 PST 2006
Author: lennart
Date: Tue Feb 21 00:31:38 2006
New Revision: 536
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=536&root=polypaudio&view=rev
Log:
add validity check for the "server" parameter of pa_context_connect()
Modified:
trunk/src/polyp/context.c
Modified: trunk/src/polyp/context.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polyp/context.c?rev=536&root=polypaudio&r1=535&r2=536&view=diff
==============================================================================
--- trunk/src/polyp/context.c (original)
+++ trunk/src/polyp/context.c Tue Feb 21 00:31:38 2006
@@ -624,6 +624,7 @@
PA_CHECK_VALIDITY(c, c->state == PA_CONTEXT_UNCONNECTED, PA_ERR_BADSTATE);
PA_CHECK_VALIDITY(c, !(flags & ~PA_CONTEXT_NOAUTOSPAWN), PA_ERR_INVALID);
+ PA_CHECK_VALIDITY(c, !server || *server, PA_ERR_INVALID);
if (!server)
server = c->conf->default_server;
More information about the pulseaudio-commits
mailing list