(krb5_change_password): check for fd's being too large to select on
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9198 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		@@ -299,6 +299,12 @@ krb5_change_password (krb5_context	context,
 | 
				
			|||||||
		}
 | 
							}
 | 
				
			||||||
	    }
 | 
						    }
 | 
				
			||||||
	    
 | 
						    
 | 
				
			||||||
 | 
						    if (sock >= FD_SETSIZE) {
 | 
				
			||||||
 | 
							ret = ERANGE;
 | 
				
			||||||
 | 
							close (sock);
 | 
				
			||||||
 | 
							goto out;
 | 
				
			||||||
 | 
						    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	    FD_ZERO(&fdset);
 | 
						    FD_ZERO(&fdset);
 | 
				
			||||||
	    FD_SET(sock, &fdset);
 | 
						    FD_SET(sock, &fdset);
 | 
				
			||||||
	    tv.tv_usec = 0;
 | 
						    tv.tv_usec = 0;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user