Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 5/3/83; site west44.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!houxm!houxz!vax135!ukc!west44!lee
From: lee@west44.UUCP (Lee McLoughlin)
Newsgroups: net.bugs.uucp
Subject: Minor startup bug in uucico
Message-ID: <287@west44.UUCP>
Date: Wed, 8-Aug-84 16:19:17 EDT
Article-I.D.: west44.287
Posted: Wed Aug  8 16:19:17 1984
Date-Received: Sat, 4-Aug-84 03:42:55 EDT
Organization: CS Dept., Westfield College, London
Lines: 23

If uucico, before finding the protocol to use, has reason to call Turnoff, for
example if a RMESG, RAMESG or WMESG fails while selecting the protocol, then
the result will be a messy error since Turnoff is not initialised till a 
protocol is known.  The simple fix is to make Turnoff refer to a null routine.

About the top of cntrl.c:-
-----------------------------------------------------------------------
extern int imsg(), omsg();
Nooff(){};	/* LMCL: For Turnoff before a protocol is defined */

struct Proto Ptbl[]={
-----------------------------------------------------------------------

A little further down:-
-----------------------------------------------------------------------
int (*Rdmsg)()=imsg, (*Rddata)();
int (*Wrmsg)()=omsg, (*Wrdata)();
int (*Turnon)(), (*Turnoff)() = Nooff;	/* LMCL: Default Turnoff routine */
-----------------------------------------------------------------------
-- 
--------------
Lee McLoughlin	!ukc!lmcl, west44!lee
	UKUUCP support.