Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > 1153c581b24f47bfabf1e85a641dce83 > files > 9

pptp-1.7.2-9.fc13.src.rpm

Tue Jun 15 15:02:28 2010  James Cameron  <quozl@us.netrek.org>

	* pptp.c (open_callmgr): fix usage of status returned by waitpid;
	it must be wrapped by WEXITSTATUS to shift bits as required.

--- pptp.c	2010-06-15 14:35:20.265852021 +0100
+++ pptp.c	2010-06-15 14:32:00.478100392 +0100
@@ -475,7 +475,7 @@
                 }
                 default: /* parent */
                     waitpid(pid, &status, 0);
-                    if (status!= 0)
+                    if (WEXITSTATUS(status) != 0)
                         fatal("Call manager exited with error %d", status);
                     break;
             }