X-Git-Url: https://www.flypig.org.uk/git/?a=blobdiff_plain;f=src%2Fhashcat.c;h=47baa0e4b6a53465353a6a41bd0cfd9dc1a8ab4e;hb=7b84980e4bed7a9a5c76b1c1a40d25d2898dc3ee;hp=914aab91e2ac8a542d8361440668d0384f346333;hpb=484477dfbd22d4af4ce4f18408925010b8d91f2f;p=hashcat.git diff --git a/src/hashcat.c b/src/hashcat.c index 914aab9..47baa0e 100644 --- a/src/hashcat.c +++ b/src/hashcat.c @@ -6139,6 +6139,20 @@ int main (int argc, char **argv) char *resolved_install_folder = realpath (INSTALL_FOLDER, NULL); char *resolved_exec_path = realpath (exec_path, NULL); + if (resolved_install_folder == NULL) + { + log_error ("ERROR: %s: %s", resolved_install_folder, strerror (errno)); + + return (-1); + } + + if (resolved_exec_path == NULL) + { + log_error ("ERROR: %s: %s", resolved_exec_path, strerror (errno)); + + return (-1); + } + char *install_dir = get_install_dir (resolved_exec_path); char *profile_dir = NULL; char *session_dir = NULL;