$OpenBSD: patch-lib_checkpw_c,v 1.3 2017/07/14 15:01:09 giovanni Exp $
Fix interoperability with courier-authdaemond
https://github.com/cyrusimap/cyrus-sasl/commit/e0009121390ba3ec4d3d88da8d57d4df13788e86
Index: lib/checkpw.c
--- lib/checkpw.c.orig
+++ lib/checkpw.c
@@ -588,6 +588,7 @@ static int read_wait(int fd, unsigned delta)
 	    errno = ETIMEDOUT;
 	    return -1;
 	case +1:
+	case +2:
 	    if (FD_ISSET(fd, &rfds)) {
 		/* Success, file descriptor is readable. */
 		return 0;
