From 7e14a25dc66082f48143368fef305067d4c0dfab Mon Sep 17 00:00:00 2001 From: Rafal Szczesniak Date: Fri, 11 May 2007 21:51:53 +0000 Subject: r22811: two more memory allocation checks. rafal (This used to be commit d66b13f6facdba407604f33211574f43163b186c) --- source4/libnet/libnet_lookup.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4/libnet/libnet_lookup.c') diff --git a/source4/libnet/libnet_lookup.c b/source4/libnet/libnet_lookup.c index 1c60bfc41d..c8dc726764 100644 --- a/source4/libnet/libnet_lookup.c +++ b/source4/libnet/libnet_lookup.c @@ -74,6 +74,8 @@ struct composite_context *libnet_Lookup_send(struct libnet_context *ctx, /* parameters */ s->hostname.name = talloc_strdup(s, io->in.hostname); + if (composite_nomem(s->hostname.name, c)) return c; + s->hostname.type = io->in.type; s->hostname.scope = NULL; -- cgit