mirror of
https://github.com/dreamlayers/netbsd-mopd.git
synced 2026-01-22 18:31:16 +00:00
Fix bin/11253: seg-fault in mopd
Once we found the correct slot, make sure dle points to it. dle was left pointing out of the array by the for(;;) loop. Fix from Ken Wellsch <kwellsch@tampabay.rr.com>
This commit is contained in:
parent
3dcc9f5795
commit
57113a6902
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: process.c,v 1.9 2000/08/11 23:11:12 matt Exp $ */
|
||||
/* $NetBSD: process.c,v 1.10 2000/11/19 16:40:16 bouyer Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1993-95 Mats O Jansson. All rights reserved.
|
||||
@ -31,7 +31,7 @@
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: process.c,v 1.9 2000/08/11 23:11:12 matt Exp $");
|
||||
__RCSID("$NetBSD: process.c,v 1.10 2000/11/19 16:40:16 bouyer Exp $");
|
||||
#endif
|
||||
|
||||
#include "os.h"
|
||||
@ -357,6 +357,8 @@ mopNextLoad(dst, src, new_count, trans)
|
||||
if (slot == -1)
|
||||
return;
|
||||
|
||||
dle = &dllist[slot];
|
||||
|
||||
if ((new_count == ((dle->count+1) % 256))) {
|
||||
dle->loadaddr = dllist[slot].nloadaddr;
|
||||
dle->count = new_count;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user