[master] 9a4523dfd vcc: Missing minor error handling
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Mon Apr 12 12:49:05 UTC 2021
commit 9a4523dfd993c4ffc0a22d92b0693c1f738fc5f4
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Mon Apr 12 14:47:30 2021 +0200
vcc: Missing minor error handling
diff --git a/lib/libvcc/vcc_acl.c b/lib/libvcc/vcc_acl.c
index 226215fda..ac6ca3d87 100644
--- a/lib/libvcc/vcc_acl.c
+++ b/lib/libvcc/vcc_acl.c
@@ -164,6 +164,7 @@ vcc_acl_chk(struct vcc *tl, const struct acl_e *ae, const int l,
char h[VTCP_ADDRBUFSIZE];
char t[VTCP_ADDRBUFSIZE + 10];
char s[vsa_suckaddr_len];
+ char *r = NULL;
struct suckaddr *sa;
unsigned m;
int ll, ret = 0;
@@ -208,7 +209,8 @@ vcc_acl_chk(struct vcc *tl, const struct acl_e *ae, const int l,
vcc_ErrWhere(tl, ae->t_addr);
if (tl->acl_pedantic == 0)
vcc_Warn(tl);
- return (strdup(t));
+ REPLACE(r, t);
+ return (r);
}
static void
More information about the varnish-commit
mailing list