diff options
Diffstat (limited to 'ident/system.c')
-rw-r--r-- | ident/system.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ident/system.c b/ident/system.c index dcfe7a2..086eb85 100644 --- a/ident/system.c +++ b/ident/system.c @@ -1,5 +1,5 @@ /* This file is part of GNU Pies. - Copyright (C) 2015 Sergey Poznyakoff + Copyright (C) 2015-2016 Sergey Poznyakoff GNU Pies is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -60,7 +60,9 @@ system_authenticate (pies_identity_provider_t pr, pies_identity_t id, if (strcmp (crypt (passwd, encrypted_pass), encrypted_pass) == 0) { - struct system_identity_data *data = xmalloc (sizeof (*data)); + struct system_identity_data *data = malloc (sizeof (*data)); + if (!data) + return -1; data->gid = pwd->pw_gid; id->data = data; return 0; |