been put back in the pool. Fixes Daniel Dickman's ses device.
ok matthew@ deraadt@
-/* $OpenBSD: ses.c,v 1.48 2010/07/22 00:31:06 krw Exp $ */
+/* $OpenBSD: ses.c,v 1.49 2010/08/02 23:00:54 krw Exp $ */
/*
* Copyright (c) 2005 David Gwynne <dlg@openbsd.org>
}
cfg = (struct ses_config_hdr *)buf;
- if (cfg->pgcode != cmd->pgcode || betoh16(cfg->length) >
+ if (cfg->pgcode != SES_PAGE_CONFIG || betoh16(cfg->length) >
SES_BUFLEN) {
free(buf, M_DEVBUF);
return (1);