diff options
author | 2014-06-02 07:54:23 +0000 | |
---|---|---|
committer | 2014-06-02 07:54:23 +0000 | |
commit | fd35ec67ceff84b18d6c3fca20ed36c3b8e09200 (patch) | |
tree | 5cec04611a6bb0b63c335addb0ea48aad1839a5e | |
parent | log attach position only if log_level >= 0, (diff) | |
download | wireguard-openbsd-fd35ec67ceff84b18d6c3fca20ed36c3b8e09200.tar.xz wireguard-openbsd-fd35ec67ceff84b18d6c3fca20ed36c3b8e09200.zip |
fix uninitialized sock->port variable, causing crashes in certain
error handling code paths (ex. wrong/unsupported mode).
-rw-r--r-- | usr.bin/sndiod/sock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/sndiod/sock.c b/usr.bin/sndiod/sock.c index 82a403c5b4b..619ac71afc4 100644 --- a/usr.bin/sndiod/sock.c +++ b/usr.bin/sndiod/sock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sock.c,v 1.12 2014/03/07 10:23:05 ratchov Exp $ */ +/* $OpenBSD: sock.c,v 1.13 2014/06/02 07:54:23 ratchov Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org> * @@ -275,6 +275,7 @@ sock_new(int fd) f->pstate = SOCK_AUTH; f->opt = NULL; f->slot = NULL; + f->port = NULL; f->midi = NULL; f->tickpending = 0; f->fillpending = 0; |