Ethan Galstad 22 лет назад
Родитель
Сommit
5b31896e44
2 измененных файлов с 10 добавлено и 7 удалено
  1. 6 6
      include/dh.h
  2. 4 1
      src/nrpe.c

+ 6 - 6
include/dh.h

@@ -4,12 +4,12 @@
 DH *get_dh512()
 	{
 	static unsigned char dh512_p[]={
-		0xB3,0xDB,0x56,0x63,0x38,0x40,0xF6,0x12,0xF6,0x12,0xBD,0xBA,
-		0x2D,0x16,0x1E,0xDA,0x2B,0x06,0xFD,0xEE,0x9D,0x2F,0x91,0x52,
-		0x30,0x2F,0x74,0x9E,0xDE,0xE7,0x8B,0x8E,0x01,0x9C,0xCE,0x52,
-		0x42,0xD9,0xA7,0xAD,0x39,0x6C,0x04,0xD6,0x25,0x9F,0x79,0x63,
-		0xE6,0x71,0xFD,0x66,0x54,0x01,0x61,0xB1,0x57,0xFC,0x9C,0x88,
-		0xD4,0xCB,0x8D,0xE3,
+		0xD1,0xA7,0x39,0x62,0x2D,0xC5,0xE3,0xC4,0x37,0x3F,0x49,0x4E,
+		0x62,0x78,0x26,0x77,0x31,0xE0,0x60,0x2C,0xA5,0x91,0x93,0x6C,
+		0x8E,0x17,0xA5,0x80,0x08,0xDE,0x19,0x5C,0x67,0x86,0xE9,0xD1,
+		0x10,0x61,0xA2,0xA2,0xF2,0xCF,0xC9,0xDA,0x85,0x70,0xE5,0x64,
+		0xEF,0xB1,0xB7,0x03,0x54,0x92,0x50,0xEA,0x3D,0x6D,0x17,0xFE,
+		0x4D,0x60,0x6A,0x8B,
 		};
 	static unsigned char dh512_g[]={
 		0x02,

+ 4 - 1
src/nrpe.c

@@ -4,7 +4,7 @@
  * Copyright (c) 1999-2003 Ethan Galstad (nagios@nagios.org)
  * License: GPL
  *
- * Last Modified: 10-23-2003
+ * Last Modified: 10-24-2003
  *
  * Command line: nrpe -c <config_file> [--inetd | --daemon]
  *
@@ -697,6 +697,7 @@ void wait_for_connections(void){
 
 					/* refuse the connection */
 					refuse(&req);
+					close(new_sd);
 
 					/* should not be reached */
 					syslog(LOG_ERR,"libwrap refuse() returns!");
@@ -1215,6 +1216,7 @@ int drop_privileges(char *user, char *group){
 				gid=(gid_t)(grp->gr_gid);
 			else
 				syslog(LOG_ERR,"Warning: Could not get group entry for '%s'",group);
+			endgrent();
 		        }
 
 		/* else we were passed the GID */
@@ -1240,6 +1242,7 @@ int drop_privileges(char *user, char *group){
 				uid=(uid_t)(pw->pw_uid);
 			else
 				syslog(LOG_ERR,"Warning: Could not get passwd entry for '%s'",user);
+			endpwent();
 		        }
 
 		/* else we were passed the UID */