[PATCH] dc-rhev-image.c: avoid NULL-deref upon OOM
Pete Zaitcev
zaitcev at redhat.com
Thu May 26 17:17:41 UTC 2011
On Thu, 26 May 2011 13:22:36 +0200
Jim Meyering <jim at meyering.net> wrote:
> +++ b/dc-rhev-image.c
> @@ -840,7 +840,7 @@ static struct stor_dom *apistart(struct config *cfg)
> if (!host)
> goto err_alloc;
> scheme = strndup(huri.scheme, huri.scheme_len);
> - if (!host)
> + if (!scheme)
> goto err_alloc;
Thanks, applied locally too.
-- Pete
More information about the iwhd-devel
mailing list