nwagner...@gmail.com wrote on 09/27/2012 12:03:33 PM:

> I'm away from my devel machine right now, but from what I remember, 
> you changed the slpifaces structure from having two static arrays of
> SLP_MAX_IFACES to two pointers.  It appeared to me at the time that 
> SLPDDatabaseReg wasn't allocating memory for those pointers when 
> initializing the slpifaces structure.

        This is done in SLPDIncomingInit() and in SLPDIncomingReinit(),
which is called after SLPDPropertyInit() so they have the current
config file value for slp_max_ifaces before they are allocated. And
the old ones, if there, are freed in SLPDIncomingReinit() before 
allocating
the new ones.
        Because the test programs don't use these, they have their own
allocations in the main programs. (e.g., main() in slp_iface.c)
        Did you see a problem while running it, or was it something
you were concerned about from code browsing? I could declare them as 
static,
external or just explicitly initialize the pointers to NULL which would
fault on any indirection before initialization, but I believe I've
covered all the cases in the original.

                                                        +-DLS


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Openslp-devel mailing list
Openslp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openslp-devel

Reply via email to