summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/channels.c b/channels.c
index dfa1e591b..26b63a1aa 100644
--- a/channels.c
+++ b/channels.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: channels.c,v 1.265 2006/08/03 03:34:41 deraadt Exp $ */ 1/* $OpenBSD: channels.c,v 1.266 2006/08/29 10:40:18 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -3164,9 +3164,7 @@ x11_request_forwarding_with_spoofing(int client_session_id, const char *disp,
3164 return; 3164 return;
3165 } 3165 }
3166 3166
3167 cp = disp; 3167 cp = strchr(disp, ':');
3168 if (disp)
3169 cp = strchr(disp, ':');
3170 if (cp) 3168 if (cp)
3171 cp = strchr(cp, '.'); 3169 cp = strchr(cp, '.');
3172 if (cp) 3170 if (cp)