summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
52cd43a)
The function update_db_entry() may only be called if pppdb is not NULL;
unfortunately in one situation it is. Other calls to update_db_entry()
are protected against this, see, e.g., the end of script_setenv().
This is from the Debian pppd patches, and fixes Debian bug 308136
(SEGV in pppd).
Signed-off-by: Paul Mackerras <paulus@samba.org>
free(p-1);
script_env[i] = newstring;
#ifdef USE_TDB
free(p-1);
script_env[i] = newstring;
#ifdef USE_TDB
- if (iskey && pppdb != NULL)
- add_db_key(newstring);
- update_db_entry();
+ if (pppdb != NULL) {
+ if (iskey)
+ add_db_key(newstring);
+ update_db_entry();
+ }