]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Bug 460: make an "OK" response be an error if we're not expecting it
authorLee Howard <faxguy@howardsilvan.com>
Fri, 31 Oct 2003 21:14:39 +0000 (21:14 +0000)
committerLee Howard <faxguy@howardsilvan.com>
Fri, 31 Oct 2003 21:14:39 +0000 (21:14 +0000)
faxd/ClassModem.c++

index 50f21a5a1f08d77cdce9c31490ecdf879aa038d0..db0ade1956c5200285bebed24202a2760eb043f6 100644 (file)
@@ -967,6 +967,11 @@ ClassModem::waitFor(ATResponse wanted, long ms)
        case AT_OFFHOOK:
        case AT_RING:
            modemTrace("MODEM %s", ATresponses[response]);
+       case AT_OK:
+           /*
+            * If we get OK and aren't expecting it then we're back in command-mode
+            * and our previous command failed to acheive the desired result.
+            */
            return (false);
        }
     }