File 0170-2172023-mlogf.patch of Package sblim-sfcb

Index: httpAdapter.c
===================================================================
RCS file: /cvsroot/sblim/sfcb/httpAdapter.c,v
retrieving revision 1.60
diff -r1.60 httpAdapter.c
1765c1765
< 	  "--- Certificate authentication exit not configured\n",dlName);	
---
> 	  "--- Certificate authentication exit not configured\n");	
Index: mlog.c
===================================================================
RCS file: /cvsroot/sblim/sfcb/mlog.c,v
retrieving revision 1.5
diff -r1.5 mlog.c
33a34,45
> /** \brief mlogf - Create syslog entries
>  *
>  * This should be called with a format string in fmt, with 
>  * the variables to be inserted in it as the arguments 
>  * following (...)
>  * eg
>  *  mlogf(M_ERROR,M_SHOW,"--- %s failed rc=%d\n",oper,rc);
>  * 
>  * Don't allow user input into the format string as it 
>  * is not to be trusted. No need to use sprintf to build
>  * the string before passing it to mlogf.
>  */
Index: providerDrv.c
===================================================================
RCS file: /cvsroot/sblim/sfcb/providerDrv.c,v
retrieving revision 1.66
diff -r1.66 providerDrv.c
2396c2396
<       sprintf(msg, "*** Failed to load %s for %s\n", dlName,
---
>       snprintf(msg,739,"*** Failed to load %s for %s\n", dlName,
2405c2405
<       sprintf(msg, "*** Inconsistent provider registration for %s (1)\n",
---
>       snprintf(msg,739,"*** Inconsistent provider registration for %s (1)\n",
Index: providerMgr.c
===================================================================
RCS file: /cvsroot/sblim/sfcb/providerMgr.c,v
retrieving revision 1.51
diff -r1.51 providerMgr.c
123,138d122
< /*
< static void handleSigterm(int sig)
< {
<    mlogf(M_ERROR,M_SHOW, "%s: exiting due to signal %d\n", "provider", sig);
<    exit(1);
< }
< 
< static void handleSigSegv(int sig)
< {
<    mlogf(M_ERROR,M_SHOW, "()%d): exiting due to a SIGSEGV signal %d - %s(%d)\n",
<            currentProc, sig, __FILE__, __LINE__);
<    abort();
< }
< */
< 
< 

 	  	 
openSUSE Build Service is sponsored by