Fix potential false-positive OOM error reporting.
Fix potential false-positive OOM error reporting.

If no matching device was found (cap == NULL) then no strdup() call
was made and *wwnn and *wwpn are untouched. Checking them for NULL
in this situation may result in reporting an false-positive OOM error
because *wwnn and *wwpn may be initialized to NULL by the caller.

Only check *wwnn and *wwpn for NULL if a matching device was found
(cap != NULL) and thus strdup() was called.

* src/conf/node_device_conf.c: only report an OOM error if there
  really is one

soulxu/libvirt-xuhj,wiedi/libvirt,warewolf/libvirt,eskultety/libvirt,taget/libvirt,libvirt/libvirt,wiedi/libvirt,wiedi/libvirt,zippy2/libvirt,leilihh/libvirt,crobinso/libvirt,siboulet/libvirt-openvz,agx/libvirt,zhlcindy/libvirt-1.1.4-maintain,VenkatDatta/libvirt,amery/libvirt-vserver,dumbbell/libvirt,olafhering/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,warewolf/libvirt,datto/libvirt,crobinso/libvirt,shugaoye/libvirt,jeckersb/libvirt,zhlcindy/libvirt-1.1.4-maintain,novel/fbsd-libvirt,rmarwaha/libvirt1,bjzhang/libvirt,warewolf/libvirt,leilihh/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,dumbbell/libvirt,danwent/libvirt-ovs,danwent/libvirt-ovs,jeckersb/libvirt,crobinso/libvirt,nertpinx/libvirt,emaste/libvirt,agx/libvirt,VenkatDatta/libvirt,rbu/libvirt,foomango/libvirt,emaste/libvirt,usc-isi/libvirt,jeckersb/libvirt,agx/libvirt,rmarwaha/libvirt1,rmarwaha/libvirt,danwent/libvirt-ovs,rmarwaha/libvirt1,zippy2/libvirt,novel/fbsd-libvirt,andreabolognani/libvirt,fabianfreyer/libvirt,jeckersb/libvirt,siboulet/libvirt-openvz,rmarwaha/libvirt1,emaste/libvirt,warewolf/libvirt,novel/fbsd-libvirt,amery/libvirt-vserver,bjzhang/libvirt,bjzhang/libvirt,dumbbell/libvirt,cbosdo/libvirt,libvirt/libvirt,wiedi/libvirt,novel/fbsd-libvirt,kantai/libvirt-vfork,danwent/libvirt-ovs,emaste/libvirt,usc-isi/libvirt,agx/libvirt,foomango/libvirt,novel/fbsd-libvirt,iam-TJ/libvirt,soulxu/libvirt-xuhj,trainstack/libvirt,taget/libvirt,rbu/libvirt,zhlcindy/libvirt-1.1.4-maintain,amery/libvirt-vserver,datto/libvirt,datto/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,fabianfreyer/libvirt,eskultety/libvirt,iam-TJ/libvirt,jfehlig/libvirt,olafhering/libvirt,danwent/libvirt-ovs,trainstack/libvirt,iam-TJ/libvirt,agx/libvirt,rmarwaha/libvirt1,trainstack/libvirt,andreabolognani/libvirt,elmarco/libvirt,trainstack/libvirt,olafhering/libvirt,amery/libvirt-vserver,emaste/libvirt,warewolf/libvirt,datto/libvirt,warewolf/libvirt,jardasgit/libvirt,rbu/libvirt,novel/fbsd-libvirt,rlaager/libvirt,wiedi/libvirt,cbosdo/libvirt,usc-isi/libvirt,eskultety/libvirt,jardasgit/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,fabianfreyer/libvirt,elmarco/libvirt,iam-TJ/libvirt,rmarwaha/libvirt,iam-TJ/libvirt,rmarwaha/libvirt,jeckersb/libvirt,VenkatDatta/libvirt,eskultety/libvirt,novel/fbsd-libvirt,crobinso/libvirt,shugaoye/libvirt,leilihh/libvirt,VenkatDatta/libvirt,wiedi/libvirt,bjzhang/libvirt,kantai/libvirt-vfork,zhlcindy/libvirt-1.1.4-maintain,foomango/libvirt,zippy2/libvirt,siboulet/libvirt-openvz,dumbbell/libvirt,shugaoye/libvirt,usc-isi/libvirt,libvirt/libvirt,usc-isi/libvirt,jfehlig/libvirt,taget/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,zhlcindy/libvirt-1.1.4-maintain,rbu/libvirt,rlaager/libvirt,leilihh/libvirt,emaste/libvirt,rbu/libvirt,soulxu/libvirt-xuhj,nertpinx/libvirt,cbosdo/libvirt,eskultety/libvirt,fabianfreyer/libvirt,trainstack/libvirt,novel/fbsd-libvirt,jfehlig/libvirt,shugaoye/libvirt,kantai/libvirt-vfork,wiedi/libvirt,jeckersb/libvirt,andreabolognani/libvirt,rlaager/libvirt,emaste/libvirt,kantai/libvirt-vfork,elmarco/libvirt,trainstack/libvirt,amery/libvirt-vserver,VenkatDatta/libvirt,foomango/libvirt,dumbbell/libvirt,jeckersb/libvirt,warewolf/libvirt,trainstack/libvirt,jfehlig/libvirt,rmarwaha/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,nertpinx/libvirt,leilihh/libvirt,zippy2/libvirt,shugaoye/libvirt,nertpinx/libvirt,siboulet/libvirt-openvz,andreabolognani/libvirt,kantai/libvirt-vfork,rmarwaha/libvirt,libvirt/libvirt,rmarwaha/libvirt,cbosdo/libvirt,rmarwaha/libvirt1,novel/fbsd-libvirt,elmarco/libvirt,rlaager/libvirt,elmarco/libvirt,taget/libvirt,jardasgit/libvirt,iam-TJ/libvirt,leilihh/libvirt,iam-TJ/libvirt,foomango/libvirt,datto/libvirt,nertpinx/libvirt,andreabolognani/libvirt,soulxu/libvirt-xuhj,siboulet/libvirt-openvz,dumbbell/libvirt,taget/libvirt,bjzhang/libvirt,olafhering/libvirt,jardasgit/libvirt,soulxu/libvirt-xuhj,cbosdo/libvirt,rlaager/libvirt