summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChia-chi Yeh <chiachi@android.com>2010-03-08 17:22:47 +0800
committerChia-chi Yeh <chiachi@android.com>2010-03-08 17:22:47 +0800
commite01c97926d16201d90f2a0f1998c1276be459e5c (patch)
tree8655e33ad157fa6be4b746e3da39ef62b6fd099a
parent003eefd3dc011a04a29f12c505726b63144650f7 (diff)
downloadmtpd-e01c97926d16201d90f2a0f1998c1276be459e5c.tar.gz
modify according to the change of keystore interface.
Change-Id: I391dae3fff391f4c67bb34b512f2e9e60182e809
-rw-r--r--mtpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mtpd.c b/mtpd.c
index bf83ac9..fd553be 100644
--- a/mtpd.c
+++ b/mtpd.c
@@ -151,7 +151,7 @@ static int get_control_and_arguments(int *argc, char ***argv)
* so other files are clean and free from android specific code. */
if (i > 4 && !strcmp("l2tp", args[1]) && args[4][0]) {
char value[KEYSTORE_MESSAGE_SIZE];
- int length = keystore_get(args[4], value);
+ int length = keystore_get(args[4], strlen(args[4]), value);
if (length == -1) {
log_print(FATAL, "Cannot get L2TP secret from keystore");
exit(SYSTEM_ERROR);