shadow: make the result of crypt() const
This should not be free'd.
This commit is contained in:
parent
dafbef3ade
commit
b5cfd43deb
4
shadow.c
4
shadow.c
@ -81,7 +81,7 @@ void run_pw_backend_child(void) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *c = crypt(buf, encpw);
|
const char *c = crypt(buf, encpw);
|
||||||
password_buffer_destroy(buf, size);
|
password_buffer_destroy(buf, size);
|
||||||
buf = NULL;
|
buf = NULL;
|
||||||
|
|
||||||
@ -100,4 +100,4 @@ void run_pw_backend_child(void) {
|
|||||||
|
|
||||||
clear_buffer(encpw, strlen(encpw));
|
clear_buffer(encpw, strlen(encpw));
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user