Packet driver bug.

Lee McLoughlin lee at west44.UUCP
Tue Aug 21 10:10:07 AEST 1984


The following bug appears to be in all the non-USG versions of the packet driver
used by uucp (I've used it for other things, am I alone in this?).

I believe the following will prevent those unsightly core dumps from
occasionally being generated by uucico:

pk1.c:222   Move the line containing "*bp" *AFTER* the test to see if its null.
--------------------------
	if (k && pksizes[k] == pk->p_rsize) {
		pk->p_rpr = h->cntl & MOD8;
		pksack(pk);
		Connodata = 0;
		bp = pk->p_ipool;
		if (bp == NULL) {
			PKDEBUG(7, "bp NULL %s\n", "");
			return;
		}
		pk->p_ipool = (char **) *bp; /* LMCL: Now after the null test */
	}
-------------------------
-- 
--------------
Lee McLoughlin	<UK>!ukc!lmcl, west44!lee
	UKUUCP support.



More information about the Comp.unix.wizards mailing list