network: fix use-of-uninitialized-value or null dereference

This fixes a bug introduced by 6ef5c881dd.

Fixes oss-fuzz#14157 and oss-fuzz#14158.
This commit is contained in:
Yu Watanabe
2019-04-10 14:26:23 +09:00
parent 55a37d7117
commit 86a3d44de5
3 changed files with 15 additions and 11 deletions

View File

@@ -0,0 +1,5 @@
[NetDev]
Name=w
Kind=wireguard
[WireGuardPeer]
PublicKey=e

View File

@@ -0,0 +1,5 @@
[NetDev]
Name=w
Kind=wireguard
[WireGuard]
PrivateKey=E