=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/dispatch.c,v retrieving revision 1.5 retrieving revision 1.5.2.5 diff -u -r1.5 -r1.5.2.5 --- src/usr.bin/ssh/dispatch.c 2000/09/21 11:25:34 1.5 +++ src/usr.bin/ssh/dispatch.c 2001/09/27 00:15:42 1.5.2.5 @@ -22,10 +22,14 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "includes.h" -RCSID("$OpenBSD: dispatch.c,v 1.5 2000/09/21 11:25:34 markus Exp $"); -#include "ssh.h" +RCSID("$OpenBSD: dispatch.c,v 1.5.2.5 2001/09/27 00:15:42 miod Exp $"); + +#include "ssh1.h" +#include "ssh2.h" +#include "log.h" #include "dispatch.h" #include "packet.h" +#include "compat.h" #define DISPATCH_MIN 0 #define DISPATCH_MAX 255 @@ -35,7 +39,7 @@ void dispatch_protocol_error(int type, int plen, void *ctxt) { - error("Hm, dispatch protocol error: type %d plen %d", type, plen); + fatal("dispatch_protocol_error: type %d plen %d", type, plen); } void dispatch_init(dispatch_fn *dflt) @@ -66,7 +70,7 @@ if (type > 0 && type < DISPATCH_MAX && dispatch[type] != NULL) (*dispatch[type])(type, plen, ctxt); else - packet_disconnect("protocol error: rcvd type %d", type); + packet_disconnect("protocol error: rcvd type %d", type); if (done != NULL && *done) return; }