i2ptunnel: Fix NPE on proxy.i2p/add when no params

This commit is contained in:
zzz
2017-01-07 13:55:36 +00:00
parent fc0ddb0193
commit ca440a50fe
3 changed files with 23 additions and 1 deletions

View File

@@ -127,6 +127,10 @@ public abstract class LocalHTTPServer {
// Parameters are url, host, dest, nonce, and master | router | private.
// Do the add and redirect.
if (targetRequest.equals("/add")) {
if (query == null) {
out.write(ERR_ADD.getBytes("UTF-8"));
return;
}
Map<String, String> opts = new HashMap<String, String>(8);
// this only works if all keys are followed by =value
StringTokenizer tok = new StringTokenizer(query, "=&;");

View File

@@ -1,8 +1,26 @@
2017-01-07 zzz
* i2ptunnel: Fix NPE on proxy.i2p/add when no params
2017-01-06 zzz
* EepGet: Recognize more status codes
2017-01-04 zzz
* Crypto: Enforce correct seed and hash lengths in EdDSAPrivateKeySpec
* Data: No longer sort addresses in an RI by SHA256
* Router: Replace random tunnel keys when rekeying
2016-12-24 zzz
* Utils: Add RKG command line tool
2016-12-23 zzz
* Console: Add Referrer-Policy header
2016-12-22 zzz
* Blocklist:
- More efficiently check blocklist when receiving new RI
- Check blocklist when loading RIs
- Ensure blocklist is initialized before netdb
* Clock: Fix duplicate notification of clock shift listeners
* Console: Limit age of news entries displayed
* Update: Fix JVM crash and i2p.jar corruption when updating from -1

View File

@@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */
public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 2;
public final static long BUILD = 3;
/** for example "-test" */
public final static String EXTRA = "";