autofs-5.1.0 - fix compile error in defaults.c

Puzzling, suddenly I'm getting a compile error for defaults.c due
to a lack of including stdarg.h.
autofs-5.1.0 - add serialization to sasl init

Attempt to resolve crash in sasl initialization. We know that the
initial connection calls to connect to an LDAP server are not
thread safe and it looks like the sasl code doesn't take that into
consideration so adding serialization with a mutex is probably a
sensible thing to do.
autofs-5.1.0 - dont allocate dev_ctl_ops too early

If the standard io file descriptors have been closed by the cloning
process the file handle for autofs device control can correspond to
a descriptor number of one of the standard io descriptors which will
be closed when the process is daemonized.

Avoid this by closing the device control descriptor opened when
performing sanity checks at startup so that it can be opened
on a higher numbered file descriptor after the process has switched
to daemon mode.
autofs-5.1.0 - fix incorrect round robin host detection
autofs-5.0.9 - fix race accessing qdn in get_query_dn()

Fix a couple of obvious problems in get_query_dn().

First, check dn is not NULL before attempting to duplicate it.
And also protect the update of qdn in the context by a mutex.
autofs-5.1.0 - fix leak in cache_push_mapent()

cache_push_mapent() incorectly sets the cache entry mapent to the old
value which causes a memory leak when the new map entry isn't NULL.
autofs-5.1.0 - fix config entry read buffer not checked

Check the length of config file line read in and report truncation
if it was too long.
autofs-5.1.0 - fix FILE pointer check in defaults_read_config()

Fix possible use after free usage of FILE pointer in defaults_read_config().
autofs-5.1.0 - fix memory leak in conf_amd_get_log_options()

Fix obvious memory leak in conf_amd_get_log_options().
autofs-5.1.0 - fix signed comparison in inet_fill_net()

Fix the less than 0 comparison of an incorrectly declared var in
inet_fill_net().
autofs-5.1.0 - fix buffer size checks in get_network_proximity()

Add several buffer size checks in get_network_proximity().
autofs-5.1.0 - fix leak in get_network_proximity()

Fix variable net not freed after use in get_network_proximity().
autofs-5.1.0 - fix buffer size checks in merge_options()

Fix some buffer size overflow checks in merge_options().
autofs-5.1.0 - check amd lex buffer len before copy

Guard against lex to yacc communication buffer overflow.
autofs-5.1.0 - add return check in ldap check_map_indirect()

Fix not checking return from pthread_mutex_lock/pthread_mutex_unlock in
modules/lookup_ldap.c:check_map_indirect().
autofs-5.1.0 - check host macro is set before use

Check marco lookup return for ${host} in match_my_name() before using it.
autofs-5.1.0 - check options length before use in parse_amd.c

Check for temporary buffer overflow before copy at several places in
modules/parse_amd.c.
autofs-5.1.0 - fix some out of order evaluations in parse_amd.c

Fix some check contents before NULL check ordering in modules/parse_amd.c.
autofs-5.1.0 - fix copy and paste error in dup_defaults_entry()
autofs-5.1.0 - fix leak in parse_mount()

Fix a potential memory leak of the allocated mount location
in modules/parse_sun.c:parse_mount().