]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Fix UTHBuildFlow setup using wrong address.
authorVictor Julien <victor@inliniac.net>
Fri, 2 Mar 2012 10:08:06 +0000 (11:08 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 2 Mar 2012 10:08:06 +0000 (11:08 +0100)
src/util-unittest-helper.c

index 11c6df507a1fb753c1566ac4d419107a687cd844..b64f2924a7355ebf3588835c41a6645ba341ac1e 100644 (file)
@@ -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;
             }