ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] nss_ldap bug (или злой я сегодня)
@ 2002-04-02 18:44 Alexey Voinov
  0 siblings, 0 replies; only message in thread
From: Alexey Voinov @ 2002-04-02 18:44 UTC (permalink / raw)
  To: Sisyphus Mailing List


[-- Attachment #1.1: Type: text/plain, Size: 829 bytes --]

Приветсвую всех!

В nss_ldap-172-alt4 обнаружился препротивнейший баг.
Сегодня полдня потратил на изыскания почему это у меня ls -l стал
завершаться с Segmentation fault. Выяснилось, что в nss_ldap кто-то
нехороший не проверил в одном месте указатель на NULL. В итоге, если
LDAP-сервер по какой-то причине недоступен, то все команды пытающиеся
получить скажем имя пользователя по его uid круто обламываются.
Патч приложен.

(В pam_ldap-125-alt1 тоже прячется злобный SegFault, но на его исправление
сегодня уже не хватило времени. Патчик будет, видимо, завтра)

-- 
Best Regards!           | Когда вам платят за работу, надо по крайней мере
Alexey Voinov           | делать вид, что вы работаете...
                        |                         Б.Виан "Осень в Пекине"
voins@voins.program.ru
voins@online.ru
vns@altlinux.ru


[-- Attachment #1.2: nss_ldap-patch.patch --]
[-- Type: text/plain, Size: 410 bytes --]

diff -Naurk.orig nss_ldap-172/ldap-nss.c.orig nss_ldap-172/ldap-nss.c
--- nss_ldap-172/ldap-nss.c.orig	Thu Aug 30 07:34:27 2001
+++ nss_ldap-172/ldap-nss.c	Tue Apr  2 14:26:48 2002
@@ -824,7 +824,7 @@
 #ifdef HAVE_LDAP_INITIALIZE
 	}
 #endif
-      if (__session.ls_conn != NULL || cfg->ldc_next == cfg)
+      if (__session.ls_conn != NULL || cfg->ldc_next == cfg || cfg->ldc_next == NULL)
 	{
 	  break;
 	}

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-04-02 18:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-02 18:44 [sisyphus] nss_ldap bug (или злой я сегодня) Alexey Voinov

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git