Diff between 5ebaeab4164f80539904b9a520d9b7a8307e06e2 and e453627223db0d6488d2bdb2847dfc0865047730

Changed Files

File Additions Deletions Status
src/shared/util.c +1 -1 modified

Full Patch

diff --git a/src/shared/util.c b/src/shared/util.c
index 30f054a..6e7634a 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -182,7 +182,7 @@ bool util_ltv_foreach(const uint8_t *data, uint8_t len, uint8_t *type,
 	struct iovec iov;
 	int i;
 
-	if (!func)
+	if (!func || !data)
 		return false;
 
 	iov.iov_base = (void *) data;