nss: Move address appending code into a separate function
nss: Move address appending code into a separate function

The part of the code that appends found IP address into a list is
going to be re-used. Instead of copying it over, move it to a
separate function.

Signed-off-by: Michal Privoznik <83d82aaba2eed257f4814b0c239c260c4caaadf0@redhat.com>

datto/libvirt,jfehlig/libvirt,andreabolognani/libvirt,andreabolognani/libvirt,nertpinx/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,crobinso/libvirt,taget/libvirt,libvirt/libvirt,crobinso/libvirt,eskultety/libvirt,eskultety/libvirt,datto/libvirt,fabianfreyer/libvirt,datto/libvirt,jardasgit/libvirt,jardasgit/libvirt,nertpinx/libvirt,VenkatDatta/libvirt,taget/libvirt,olafhering/libvirt,zippy2/libvirt,jardasgit/libvirt,VenkatDatta/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,jfehlig/libvirt,zippy2/libvirt,jfehlig/libvirt,datto/libvirt,eskultety/libvirt,libvirt/libvirt,fabianfreyer/libvirt,crobinso/libvirt,libvirt/libvirt,VenkatDatta/libvirt,taget/libvirt,crobinso/libvirt,olafhering/libvirt,taget/libvirt,taget/libvirt,olafhering/libvirt,nertpinx/libvirt,VenkatDatta/libvirt,jfehlig/libvirt,andreabolognani/libvirt,eskultety/libvirt,zippy2/libvirt,libvirt/libvirt,fabianfreyer/libvirt,VenkatDatta/libvirt,andreabolognani/libvirt,olafhering/libvirt,datto/libvirt,jardasgit/libvirt,zippy2/libvirt,andreabolognani/libvirt,eskultety/libvirt,jardasgit/libvirt