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;
|
||||
}
|
||||
|
||||
char *c = crypt(buf, encpw);
|
||||
const char *c = crypt(buf, encpw);
|
||||
password_buffer_destroy(buf, size);
|
||||
buf = NULL;
|
||||
|
||||
@ -100,4 +100,4 @@ void run_pw_backend_child(void) {
|
||||
|
||||
clear_buffer(encpw, strlen(encpw));
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user