-/* $OpenBSD: dhclient.c,v 1.305 2014/05/11 14:00:52 krw Exp $ */
+/* $OpenBSD: dhclient.c,v 1.306 2014/05/12 18:50:02 krw Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
break;
sa = get_ifa((char *)ifam + ifam->ifam_hdrlen,
ifam->ifam_addrs);
- if (sa == NULL) {
- rslt = asprintf(&errmsg, "%s sa == NULL", ifi->name);
- goto die;
- }
+ if (sa == NULL)
+ goto done;
memcpy(&a, &((struct sockaddr_in *)sa)->sin_addr, sizeof(a));
if (a.s_addr == INADDR_ANY)
break;
sa = get_ifa((char *)ifam + ifam->ifam_hdrlen,
ifam->ifam_addrs);
- if (sa == NULL) {
- rslt = asprintf(&errmsg, "%s sa == NULL", ifi->name);
- goto die;
- }
+ if (sa == NULL)
+ goto done;
memcpy(&a, &((struct sockaddr_in *)sa)->sin_addr, sizeof(a));
if (a.s_addr == INADDR_ANY)