Merge change 26791 into eclair
* changes: KeyStore: return null when response code indicates an error.
This commit is contained in:
@@ -172,8 +172,10 @@ public class KeyStore {
|
|||||||
socket.shutdownOutput();
|
socket.shutdownOutput();
|
||||||
|
|
||||||
InputStream in = socket.getInputStream();
|
InputStream in = socket.getInputStream();
|
||||||
code = in.read();
|
if ((code = in.read()) != NO_ERROR) {
|
||||||
if (code == -1) {
|
if (code != -1) {
|
||||||
|
mError = code;
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -194,7 +196,7 @@ public class KeyStore {
|
|||||||
}
|
}
|
||||||
results.add(result);
|
results.add(result);
|
||||||
}
|
}
|
||||||
mError = code;
|
mError = NO_ERROR;
|
||||||
return results.toArray(new byte[results.size()][]);
|
return results.toArray(new byte[results.size()][]);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
// ignore
|
// ignore
|
||||||
|
|||||||
Reference in New Issue
Block a user