Fix UTHBuildFlow setup using wrong address.

remotes/origin/master
Victor Julien 14 years ago
parent e3935a2af2
commit 385f1dcd25

@ -458,8 +458,8 @@ Flow *UTHBuildFlow(int family, char *src, char *dst, Port sp, Port dp) {
} }
if (dst != NULL) { if (dst != NULL) {
if (family == AF_INET) { if (family == AF_INET) {
if (inet_pton(AF_INET, src, &in) != 1) { if (inet_pton(AF_INET, dst, &in) != 1) {
printf("invalid address %s\n", src); printf("invalid address %s\n", dst);
SCFree(f); SCFree(f);
return NULL; return NULL;
} }

Loading…
Cancel
Save