git.samba.org
/
obnox
/
wireshark
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2647433
)
Fix get_conn_cfilter() such that not an invalid capture filter
author
tuexen
<tuexen@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 7 Apr 2008 13:22:47 +0000
(13:22 +0000)
committer
tuexen
<tuexen@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 7 Apr 2008 13:22:47 +0000
(13:22 +0000)
is used on FreeBSD 7.0 systems. Now REMOTEHOST can be an
empty string.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24834
f5534014
-38df-0310-8fa8-
9805f1628bb7
util.c
patch
|
blob
|
history
diff --git
a/util.c
b/util.c
index 098010cfc7ada00ae177e830ad7bab138a87f4f1..ddbc6a77c513e70c199be93d80b51afaab25891f 100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-167,7
+167,10
@@
const gchar *get_conn_cfilter(void) {
"and tcp port %s)", tokens[1], host_ip_af(tokens[0]), tokens[0], tokens[2]);
return filter_str->str;
} else if ((env = getenv("REMOTEHOST")) != NULL) {
- if (g_ascii_strcasecmp(env, "localhost") == 0 || strcmp(env, "127.0.0.1") == 0) {
+ /* FreeBSD 7.0 sets REMOTEHOST to an empty string */
+ if (g_ascii_strcasecmp(env, "localhost") == 0 ||
+ strcmp(env, "127.0.0.1") == 0 ||
+ strcmp(env, "") == 0) {
return "";
}
g_string_sprintf(filter_str, "not %s host %s", host_ip_af(env), env);