From: Victor Julien Date: Fri, 2 Mar 2012 10:08:06 +0000 (+0100) Subject: Fix UTHBuildFlow setup using wrong address. X-Git-Tag: suricata-1.3beta1~135 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=385f1dcd2580b4ef181226fca6a1fd3c90746166;p=thirdparty%2Fsuricata.git Fix UTHBuildFlow setup using wrong address. --- 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; }