From 931cbd19f269a64dd4d8edfa592ac21500cbd380 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 9 Oct 2008 19:31:43 -0300 Subject: Fix possible invalid read while attempting to load module-bluetooth-device. --- src/daemon/default.pa.in | 2 +- src/modules/bluetooth/module-bluetooth-discover.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/daemon/default.pa.in b/src/daemon/default.pa.in index ae54c0a8..a8318766 100755 --- a/src/daemon/default.pa.in +++ b/src/daemon/default.pa.in @@ -73,7 +73,7 @@ load-module module-native-protocol-unix #load-module module-rtp-send source=rtp.monitor ### Enable flat volumes where possible -load-module module-flat-volumes +load-module module-flat-volume ### Automatically restore the volume of streams and devices load-module module-device-restore diff --git a/src/modules/bluetooth/module-bluetooth-discover.c b/src/modules/bluetooth/module-bluetooth-discover.c index a33ca648..79fb7a8a 100644 --- a/src/modules/bluetooth/module-bluetooth-discover.c +++ b/src/modules/bluetooth/module-bluetooth-discover.c @@ -346,7 +346,7 @@ static void load_module_for_device(struct userdata *u, struct device *d, const c pa_m = pa_module_load(u->module->core, "module-bluetooth-device", args); pa_xfree(args); - if (!m) { + if (!pa_m) { pa_log_debug("Failed to load module for device %s", d->object_path); return; } -- cgit