mirror of
https://github.com/paulusmack/ppp.git
synced 2024-11-26 21:15:04 +08:00
pppd/plugins/radius/clientid.c: handle strdup failure (#507)
Signed-off-by: Ilya Shipitsin <chipitsine@gmail.com>
This commit is contained in:
parent
cb593953b5
commit
fa612cba71
@ -72,7 +72,11 @@ int rc_read_mapfile(char *filename)
|
||||
return (-1);
|
||||
}
|
||||
|
||||
p->name = strdup(name);
|
||||
if ((p->name = strdup(name)) == NULL) {
|
||||
novm("rc_read_mapfile");
|
||||
fclose(mapfd);
|
||||
return (-1);
|
||||
}
|
||||
p->id = atoi(id);
|
||||
p->next = map2id_list;
|
||||
map2id_list = p;
|
||||
|
Loading…
Reference in New Issue
Block a user