initialize IP ACLs properly
authorLennart Poettering <lennart@poettering.net>
Mon, 11 Aug 2008 17:46:28 +0000 (19:46 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 11 Aug 2008 17:46:28 +0000 (19:46 +0200)
src/pulsecore/protocol-esound.c
src/pulsecore/protocol-native.c

index f190d96..36d1b45 100644 (file)
@@ -1574,7 +1574,7 @@ int pa_esound_options_parse(pa_esound_options *o, pa_core *c, pa_modargs *ma) {
     if ((acl = pa_modargs_get_value(ma, "auth-ip-acl", NULL))) {
         pa_ip_acl *ipa;
 
-        if (!(o->auth_ip_acl = pa_ip_acl_new(acl))) {
+        if (!(ipa = pa_ip_acl_new(acl))) {
             pa_log("Failed to parse IP ACL '%s'", acl);
             return -1;
         }
index 9bf1059..0e07276 100644 (file)
@@ -4299,7 +4299,7 @@ int pa_native_options_parse(pa_native_options *o, pa_core *c, pa_modargs *ma) {
     if ((acl = pa_modargs_get_value(ma, "auth-ip-acl", NULL))) {
         pa_ip_acl *ipa;
 
-        if (!(o->auth_ip_acl = pa_ip_acl_new(acl))) {
+        if (!(ipa = pa_ip_acl_new(acl))) {
             pa_log("Failed to parse IP ACL '%s'", acl);
             return -1;
         }