]> xenbits.xensource.com Git - libvirt.git/commit
util: netdev: Don't crash in virNetDevSetIPAddress if @peer is NULL
authorPeter Krempa <pkrempa@redhat.com>
Fri, 8 Apr 2016 11:51:57 +0000 (13:51 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 8 Apr 2016 12:28:11 +0000 (14:28 +0200)
commita3510e33d33e52c7c7eceb6d12bb121ac0b36638
treef6182d26c4931165439625a351f15f8b11b3e143
parentf06ca25d235433f9139cbfb3d5d9eae7409156b9
util: netdev: Don't crash in virNetDevSetIPAddress if @peer is NULL

VIR_SOCKET_ADDR_VALID dereferences the pointer, thus if we pass NULL
into virNetDevSetIPAddress it crashes. Regression introduced by
b3d069872ce53eb.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1325120
src/util/virnetdev.c