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; 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);
} }