From 385f1dcd2580b4ef181226fca6a1fd3c90746166 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 2 Mar 2012 11:08:06 +0100 Subject: [PATCH] Fix UTHBuildFlow setup using wrong address. --- src/util-unittest-helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util-unittest-helper.c b/src/util-unittest-helper.c index 11c6df507a..b64f2924a7 100644 --- a/src/util-unittest-helper.c +++ b/src/util-unittest-helper.c @@ -458,8 +458,8 @@ Flow *UTHBuildFlow(int family, char *src, char *dst, Port sp, Port dp) { } if (dst != NULL) { if (family == AF_INET) { - if (inet_pton(AF_INET, src, &in) != 1) { - printf("invalid address %s\n", src); + if (inet_pton(AF_INET, dst, &in) != 1) { + printf("invalid address %s\n", dst); SCFree(f); return NULL; } -- 2.47.2