summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2016-03-15 18:16:07 +0000
committerderaadt <deraadt@openbsd.org>2016-03-15 18:16:07 +0000
commit00d72ac062c3db71d09350ad045cdedc11f31c3b (patch)
tree13fb142a13e93d5423e786e57595d9edaaf17310
parentFix size passed to free(), found the hard way by Nick Permyakov (diff)
downloadwireguard-openbsd-00d72ac062c3db71d09350ad045cdedc11f31c3b.tar.xz
wireguard-openbsd-00d72ac062c3db71d09350ad045cdedc11f31c3b.zip
not compiled before commit
-rw-r--r--sys/arch/macppc/dev/pm_direct.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/macppc/dev/pm_direct.c b/sys/arch/macppc/dev/pm_direct.c
index 3b7386adf3a..a01f07cb70c 100644
--- a/sys/arch/macppc/dev/pm_direct.c
+++ b/sys/arch/macppc/dev/pm_direct.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pm_direct.c,v 1.26 2016/03/14 23:08:05 krw Exp $ */
+/* $OpenBSD: pm_direct.c,v 1.27 2016/03/15 18:16:07 deraadt Exp $ */
/* $NetBSD: pm_direct.c,v 1.9 2000/06/08 22:10:46 tsubai Exp $ */
/*
@@ -537,7 +537,7 @@ pm_adb_op(u_char *buffer, void *compRout, void *data, int command)
pmdata.data[1] = 0;
/* if the command is LISTEN, copy ADB data to PM buffer */
if ((command & 0xc) == 0x8) {
- if ((buffer != NULL && (buffer[0] <= 24)) {
+ if (buffer != NULL && buffer[0] <= 24) {
pmdata.data[2] = buffer[0]; /* number of data */
for (i = 0; i < buffer[0]; i++)
pmdata.data[3 + i] = buffer[1 + i];