Make sure _nss_wins_gethostbyname_r has a talloc stackframe available
Thanks to Sergey Tereschenko <serg.partizan@gmail.com> for reporting the bug!
Volker
(cherry picked from commit
3c68414b2fe1e8db66469b4b6374b26b5fe9fbcb)
int i, count;
fstring name;
size_t namelen;
+ TALLOC_CTX *frame;
#if HAVE_PTHREAD
pthread_mutex_lock(&wins_nss_mutex);
#endif
+ frame = talloc_stackframe();
+
memset(he, '\0', sizeof(*he));
fstrcpy(name, hostname);
out:
+ TALLOC_FREE(frame);
+
#if HAVE_PTHREAD
pthread_mutex_unlock(&wins_nss_mutex);
#endif