From: Aleksey C. <vl...@gm...> - 2003-02-23 20:28:32
|
If the 'name' keyword is used in database section, and it doesn't begin with '@', dictd may crash on SIGHUP. Affected versions: 1.9.1-1.9.4. The following is the patch. This patch is the only difference between dictd-1.9.4 and dictd-1.9.5 releases. You can download dictd-1.9.5 from http://sf.net/projects/dict diff -ruN dictd-1.9.4/dictd.c dictd1/dictd.c --- dictd-1.9.4/dictd.c Mon Feb 10 21:24:25 2003 +++ dictd1/dictd.c Sun Feb 23 19:13:43 2003 @@ -572,6 +572,9 @@ db->databaseShort = get_entry_info( db, DICT_SHORT_ENTRY_NAME ); else if (*db->databaseShort == '@') db->databaseShort = get_entry_info( db, db->databaseShort + 1 ); + else + db->databaseShort = xstrdup (db->databaseShort); + if (!db->databaseShort) db->databaseShort = xstrdup (db->databaseName); -- Best regards, Aleksey Cheusov. |