[freenet-cvs] r18971 - trunk/freenet/src/freenet/node

Matthew Toseland toad at amphibian.dyndns.org
Fri Apr 4 18:17:44 UTC 2008


On that path, it can't. pn can only be null in sendAnonAuthPacket. Please 
revert.

On Friday 04 April 2008 06:39, nextgens at freenetproject.org wrote:
> Author: nextgens
> Date: 2008-04-04 05:39:56 +0000 (Fri, 04 Apr 2008)
> New Revision: 18971
> 
> Modified:
>    trunk/freenet/src/freenet/node/FNPPacketMangler.java
> Log:
> Fix a NPE which could be thrown if we don't have set pn yet.
> 
> I'm not sure when that can happen...
> 
> Modified: trunk/freenet/src/freenet/node/FNPPacketMangler.java
> ===================================================================
> --- trunk/freenet/src/freenet/node/FNPPacketMangler.java	2008-04-04 05:31:26 
UTC (rev 18970)
> +++ trunk/freenet/src/freenet/node/FNPPacketMangler.java	2008-04-04 05:39:56 
UTC (rev 18971)
> @@ -1601,7 +1601,7 @@
>  			}
>  			Logger.minor(this, "Sending auth packet for "+(pn == null ? "null" : 
String.valueOf(pn.getPeer()))+" (phase="+phase+", ver="+version+", 
nt="+negType+") (last packet sent "+delta+") to "+replyTo+" 
data.length="+data.length+" to "+replyTo);
>  		}
> -		sendAuthPacket(output, pn.outgoingSetupCipher, pn, replyTo, false);
> +		sendAuthPacket(output, (pn == null ? null : pn.outgoingSetupCipher), pn, 
replyTo, false);
>  	}
>  	
>  	/**
> 
> _______________________________________________
> cvs mailing list
> cvs at freenetproject.org
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://emu.freenetproject.org/pipermail/cvs/attachments/20080404/0eef8362/attachment.pgp 


More information about the cvs mailing list