# HG changeset patch # User Sebastien Decugis # Date 1283751985 -32400 # Node ID 4cb8f63a0f671fb31141607bf3a2981608612903 # Parent d1cb0dadc22d7ba5748ec94198c28a44adbbbfc8 Fix segfault when no configuration string is given to the plugins diff -r d1cb0dadc22d -r 4cb8f63a0f67 extensions/app_radgw/rgwx_acct.c --- a/extensions/app_radgw/rgwx_acct.c Mon Sep 06 14:40:16 2010 +0900 +++ b/extensions/app_radgw/rgwx_acct.c Mon Sep 06 14:46:25 2010 +0900 @@ -175,7 +175,7 @@ CHECK_FCT( fd_sess_handler_create( &new->sess_hdl, free ) ); new->confstr = conffile; - if (strstr(conffile, "nonai")) + if (conffile && strstr(conffile, "nonai")) new->ignore_nai = 1; /* Resolve all dictionary objects we use */ diff -r d1cb0dadc22d -r 4cb8f63a0f67 extensions/app_radgw/rgwx_auth.c --- a/extensions/app_radgw/rgwx_auth.c Mon Sep 06 14:40:16 2010 +0900 +++ b/extensions/app_radgw/rgwx_auth.c Mon Sep 06 14:46:25 2010 +0900 @@ -141,7 +141,7 @@ CHECK_FCT( fd_sess_handler_create( &new->sess_hdl, free ) ); new->confstr = confstr; - if (strstr(confstr, "nonai")) + if (confstr && strstr(confstr, "nonai")) new->ignore_nai = 1; /* Resolve all dictionary objects we use */