shadow: make the result of crypt() const

This should not be free'd.
This commit is contained in:
Simon Ser 2022-09-26 19:58:04 +02:00
parent dafbef3ade
commit b5cfd43deb

View File

@ -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;