diff options
author | nectar <nectar@FreeBSD.org> | 2004-03-30 15:56:15 +0000 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2004-03-30 15:56:15 +0000 |
commit | 7ec3e333012ba329299be5ca10738792b75cac89 (patch) | |
tree | 6dc88cfd8956062abed823d14f63a72bf26ad661 /lib/libc/include | |
parent | b3ec818746c286dc776ca38f929c2a1feed43c79 (diff) | |
download | FreeBSD-src-7ec3e333012ba329299be5ca10738792b75cac89.zip FreeBSD-src-7ec3e333012ba329299be5ca10738792b75cac89.tar.gz |
When a dynamic NSS module is built and linked against a thread
library, it may pull in that thread library at run time. If the
process started out single-threaded, this could cause attempts to
release locks that do not exist. Guard against this possibility by
checking __isthreaded before invoking thread primitives.
A similar problem remains if the process is linked against one thread
library, but the NSS module is linked against another. This can only
be avoided by careful design of the NSS module.
Submitted by: Sean McNeil <sean@mcneil.com> (mostly; bugs are mine)
Diffstat (limited to 'lib/libc/include')
-rw-r--r-- | lib/libc/include/nss_tls.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/include/nss_tls.h b/lib/libc/include/nss_tls.h index 999d198..13ab367 100644 --- a/lib/libc/include/nss_tls.h +++ b/lib/libc/include/nss_tls.h @@ -75,6 +75,6 @@ name##_getstate(struct name##_state **p) \ return (rv); \ } \ /* allow the macro invocation to end with a semicolon */ \ -typedef int _##name##_bmVjdGFy +struct _clashproof_bmVjdGFy #endif /* _NSS_TLS_H_ */ |