diff options
author | Colin Watson <cjwatson@debian.org> | 2015-11-29 17:36:13 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2015-11-29 17:39:41 +0000 |
commit | 2028ecabc263b3e43903b8d170f4bbd07fe408e9 (patch) | |
tree | 565242aad1c1d73b6d99f9bf2c62278fca5bdd8c /mux.c | |
parent | 18a9bd1867ee6fb9d913515773b322a279759b5d (diff) | |
parent | 733c4de05612fe398ac3dc7d31d318d7012fda05 (diff) |
New upstream release (7.1p1).
Diffstat (limited to 'mux.c')
-rw-r--r-- | mux.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: mux.c,v 1.53 2015/05/01 04:03:20 djm Exp $ */ | 1 | /* $OpenBSD: mux.c,v 1.54 2015/08/19 23:18:26 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2002-2008 Damien Miller <djm@openbsd.org> | 3 | * Copyright (c) 2002-2008 Damien Miller <djm@openbsd.org> |
4 | * | 4 | * |
@@ -665,6 +665,8 @@ process_mux_open_fwd(u_int rid, Channel *c, Buffer *m, Buffer *r) | |||
665 | u_int lport, cport; | 665 | u_int lport, cport; |
666 | int i, ret = 0, freefwd = 1; | 666 | int i, ret = 0, freefwd = 1; |
667 | 667 | ||
668 | memset(&fwd, 0, sizeof(fwd)); | ||
669 | |||
668 | /* XXX - lport/cport check redundant */ | 670 | /* XXX - lport/cport check redundant */ |
669 | if (buffer_get_int_ret(&ftype, m) != 0 || | 671 | if (buffer_get_int_ret(&ftype, m) != 0 || |
670 | (listen_addr = buffer_get_string_ret(m, NULL)) == NULL || | 672 | (listen_addr = buffer_get_string_ret(m, NULL)) == NULL || |
@@ -832,6 +834,8 @@ process_mux_close_fwd(u_int rid, Channel *c, Buffer *m, Buffer *r) | |||
832 | int i, ret = 0; | 834 | int i, ret = 0; |
833 | u_int lport, cport; | 835 | u_int lport, cport; |
834 | 836 | ||
837 | memset(&fwd, 0, sizeof(fwd)); | ||
838 | |||
835 | if (buffer_get_int_ret(&ftype, m) != 0 || | 839 | if (buffer_get_int_ret(&ftype, m) != 0 || |
836 | (listen_addr = buffer_get_string_ret(m, NULL)) == NULL || | 840 | (listen_addr = buffer_get_string_ret(m, NULL)) == NULL || |
837 | buffer_get_int_ret(&lport, m) != 0 || | 841 | buffer_get_int_ret(&lport, m) != 0 || |