]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 2439] Fix check of EscapeCommFunction() in ports/winnt/libntp/termios.c
authorHarlan Stenn <stenn@ntp.org>
Sun, 28 Jul 2013 06:28:23 +0000 (02:28 -0400)
committerHarlan Stenn <stenn@ntp.org>
Sun, 28 Jul 2013 06:28:23 +0000 (02:28 -0400)
bk: 51f4ba07SHPwWtTUavxLpxyNZ-NiWg

ChangeLog
ports/winnt/libntp/termios.c

index 9168c16b44e163b5c864983f0a9e3b7f3c30d20d..4adb9a969beb423422552bd1aab418c8f076ef59 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,4 @@
+* [Bug 2439] Fix check of EscapeCommFunction() in ports/winnt/libntp/termios.c.
 (4.2.7p376) 2013/07/24 Released by Harlan Stenn <stenn@ntp.org>
 * [Bug 2322] Oncore driver should send 0 PPS offset to GPS.
 (4.2.7p375) 2013/07/22 Released by Harlan Stenn <stenn@ntp.org>
index d0e1351dc5e3a49be8db0be29e2f0f60a99cd07f..3fe4e4859c01c566c131519004818d8d3de8ead7 100644 (file)
@@ -439,7 +439,7 @@ ioctl_tiocmset(
        BOOL    failed;
        int     result;
        
-       failed = EscapeCommFunction(
+       failed = !EscapeCommFunction(
                        h, 
                        (*pi & TIOCM_RTS) 
                            ? SETRTS
@@ -447,7 +447,7 @@ ioctl_tiocmset(
                        );
 
        if (!failed)
-               failed = EscapeCommFunction(
+               failed = !EscapeCommFunction(
                                h, 
                                (*pi & TIOCM_DTR) 
                                    ? SETDTR