From e01dce27b74626e6459bb344c02efce0227aa3cf Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Tue, 8 Feb 2011 16:44:37 +0000 Subject: [PATCH] Swap of master/slave in pri_enslave() incorrect. Thank you. All I can say is oops. (closes issue #18769) Reported by: jcollie Patches: libpri-1.4.12-beta3-swap.patch uploaded by jcollie (license 412) git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@2192 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- pri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pri.c b/pri.c index 1c66338..50fb79d 100644 --- a/pri.c +++ b/pri.c @@ -1808,7 +1808,7 @@ void pri_enslave(struct pri *master, struct pri *slave) /* Swap master and slave. */ swp = master; master = slave; - slave = master; + slave = swp; } /*