From cb7edf897eb66d85c17411dd3f3aa285ab5ef343 Mon Sep 17 00:00:00 2001 From: Reyk Floeter Date: Tue, 8 May 2018 09:48:30 +0200 Subject: [PATCH] Fix return value on error --- agent/cloudinit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/cloudinit.c b/agent/cloudinit.c index 91149ac..2bf4b91 100644 --- a/agent/cloudinit.c +++ b/agent/cloudinit.c @@ -59,7 +59,7 @@ cloudinit(struct system_config *sc) static int cloudinit_fetch(struct system_config *sc) { - int ret = 0; + int ret = -1; char *str = NULL; sc->sc_addr.ip = sc->sc_endpoint;