[Bugfix][T108][bug-view-1487]Fix the issue of successfully inputting passwords with inconsistent lengths

Only Configure: No
Affected branch: GSW_V1453
Affected module: password
Is it affected on IC: only ASR
Self-test: yes
Doc Update: no

Change-Id: I4b763dfed2ad49b0063a44735defe7e463f33d5a
diff --git a/mbtk/libgsw_lib/gsw_sec_interface.c b/mbtk/libgsw_lib/gsw_sec_interface.c
index 5892b01..925d531 100755
--- a/mbtk/libgsw_lib/gsw_sec_interface.c
+++ b/mbtk/libgsw_lib/gsw_sec_interface.c
@@ -16,7 +16,7 @@
 {
     int ret;
     char cmd[256];
-    if((login_name == NULL) || (pw ==NULL))
+    if((login_name == NULL) || (pw == NULL) || (strlen(pw) != pw_len))
     {
         return GSW_HAL_NORMAL_FAIL;
     }