diff options
author | Wesley Wolfe <weswolf@aol.com> | 2013-09-02 16:51:14 -0500 |
---|---|---|
committer | Wesley Wolfe <weswolf@aol.com> | 2013-09-02 16:51:14 -0500 |
commit | 5c861fe864ac46eeffc8580814638c0590316233 (patch) | |
tree | cfbe0b0e532b7f9019c51372cb41fb9c2b9bf50e /src/main/java/net/minecraft/server/PendingConnection.java | |
parent | cd593fb1ee8daec938df92880deeedb977cd17b3 (diff) | |
download | craftbukkit-5c861fe864ac46eeffc8580814638c0590316233.tar craftbukkit-5c861fe864ac46eeffc8580814638c0590316233.tar.gz craftbukkit-5c861fe864ac46eeffc8580814638c0590316233.tar.lz craftbukkit-5c861fe864ac46eeffc8580814638c0590316233.tar.xz craftbukkit-5c861fe864ac46eeffc8580814638c0590316233.zip |
Fix improperly initialized usernames
Diffstat (limited to 'src/main/java/net/minecraft/server/PendingConnection.java')
-rw-r--r-- | src/main/java/net/minecraft/server/PendingConnection.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/PendingConnection.java b/src/main/java/net/minecraft/server/PendingConnection.java index c9e187e6..17490596 100644 --- a/src/main/java/net/minecraft/server/PendingConnection.java +++ b/src/main/java/net/minecraft/server/PendingConnection.java @@ -63,6 +63,9 @@ public class PendingConnection extends Connection { public void a(Packet2Handshake packet2handshake) { // CraftBukkit start + if (this.g != null) { + this.disconnect("Invalid username " + this.g); + } this.hostname = packet2handshake.c == null ? "" : packet2handshake.c + ':' + packet2handshake.d; // CraftBukkit end this.g = packet2handshake.f(); |