|
@@ -758,9 +758,9 @@ static int iscsi_add_notunderstood_response(
|
|
|
}
|
|
|
INIT_LIST_HEAD(&extra_response->er_list);
|
|
|
|
|
|
- strncpy(extra_response->key, key, strlen(key) + 1);
|
|
|
- strncpy(extra_response->value, NOTUNDERSTOOD,
|
|
|
- strlen(NOTUNDERSTOOD) + 1);
|
|
|
+ strlcpy(extra_response->key, key, sizeof(extra_response->key));
|
|
|
+ strlcpy(extra_response->value, NOTUNDERSTOOD,
|
|
|
+ sizeof(extra_response->value));
|
|
|
|
|
|
list_add_tail(&extra_response->er_list,
|
|
|
¶m_list->extra_response_list);
|
|
@@ -1629,8 +1629,6 @@ int iscsi_decode_text_input(
|
|
|
|
|
|
if (phase & PHASE_SECURITY) {
|
|
|
if (iscsi_check_for_auth_key(key) > 0) {
|
|
|
- char *tmpptr = key + strlen(key);
|
|
|
- *tmpptr = '=';
|
|
|
kfree(tmpbuf);
|
|
|
return 1;
|
|
|
}
|