forked from I2P_Developers/i2p.i2p
OCMOSJ: Send meta LS failure code
This commit is contained in:
@ -289,7 +289,7 @@ public class OutboundClientMessageOneShotJob extends JobImpl {
|
|||||||
}
|
}
|
||||||
if (_leaseSet != null && _leaseSet.getType() == DatabaseEntry.KEY_TYPE_META_LS2) {
|
if (_leaseSet != null && _leaseSet.getType() == DatabaseEntry.KEY_TYPE_META_LS2) {
|
||||||
// can't send to a meta LS
|
// can't send to a meta LS
|
||||||
dieFatal(MessageStatusMessage.STATUS_SEND_FAILURE_BAD_LEASESET);
|
dieFatal(MessageStatusMessage.STATUS_SEND_FAILURE_META_LEASESET);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -420,6 +420,10 @@ public class OutboundClientMessageOneShotJob extends JobImpl {
|
|||||||
// TODO Encrypted LS2 must have been previously decrypted.
|
// TODO Encrypted LS2 must have been previously decrypted.
|
||||||
if (lsType != DatabaseEntry.KEY_TYPE_LEASESET &&
|
if (lsType != DatabaseEntry.KEY_TYPE_LEASESET &&
|
||||||
lsType != DatabaseEntry.KEY_TYPE_LS2) {
|
lsType != DatabaseEntry.KEY_TYPE_LS2) {
|
||||||
|
if (lsType == DatabaseEntry.KEY_TYPE_META_LS2) {
|
||||||
|
// can't send to a meta LS
|
||||||
|
return MessageStatusMessage.STATUS_SEND_FAILURE_META_LEASESET;
|
||||||
|
}
|
||||||
return MessageStatusMessage.STATUS_SEND_FAILURE_BAD_LEASESET;
|
return MessageStatusMessage.STATUS_SEND_FAILURE_BAD_LEASESET;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user