summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/runner.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2009-05-14 10:49:01 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2009-05-14 10:49:01 +0000
commite245cb958238555c3ed4d9712ca1572bbe546483 (patch)
treee023712d3cbd16bb7978219b2177651c8f744b97 /usr.sbin/smtpd/runner.c
parent5bd17a3d557dbe98398d969f8d0704948d66fe90 (diff)
Reset b_flags rather than just OR'ing in B_READ and B_RAW when
re-using a buf. Taken from the kern/subr_disk.c readdoslabel() usage. Avoids a loop in disksort() caused by trying to queue a buffer that is already in cd->buf_queue. I can now 'disklabel cd0' with "Command & Conquer 3: Kane's Wrath" in the drive and not hang the system. Problem reported and fix tested by Jasper Valentij. Thanks!
Diffstat (limited to 'usr.sbin/smtpd/runner.c')
0 files changed, 0 insertions, 0 deletions