Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net Initialize peers early on for error branch.



details:   https://anonhg.NetBSD.org/src/rev/99c9b6cdfc90
branches:  trunk
changeset: 937698:99c9b6cdfc90
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Aug 23 18:52:53 2020 +0000

description:
Initialize peers early on for error branch.

diffstat:

 sys/net/if_wg.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 5241e520830a -r 99c9b6cdfc90 sys/net/if_wg.c
--- a/sys/net/if_wg.c   Sun Aug 23 18:26:35 2020 +0000
+++ b/sys/net/if_wg.c   Sun Aug 23 18:52:53 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_wg.c,v 1.22 2020/08/21 20:21:36 riastradh Exp $     */
+/*     $NetBSD: if_wg.c,v 1.23 2020/08/23 18:52:53 riastradh Exp $     */
 
 /*
  * Copyright (C) Ryota Ozaki <ozaki.ryota%gmail.com@localhost>
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wg.c,v 1.22 2020/08/21 20:21:36 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wg.c,v 1.23 2020/08/23 18:52:53 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -4083,7 +4083,7 @@
 {
        int error = ENOMEM;
        prop_dictionary_t prop_dict;
-       prop_array_t peers;
+       prop_array_t peers = NULL;
        char *buf;
        struct wg_peer *wgp;
        int s, i;



Home | Main Index | Thread Index | Old Index