LICENSE MIT
if a cell has been found with addresses and the next cell name
is reached before the EOF, return success.
If the cell has been found and there are no addresses, return -6
struct hostent *thp;
char *valuep;
struct sockaddr_in vlSockAddr;
- int inRightCell;
+ int inRightCell = 0;
int foundCell = 0;
long code;
int tracking = 1, partial = 0;
osi_LogSaveString(afsd_logp,wdir));
#endif
/* have we seen the cell line for the guy we're looking for? */
- inRightCell = 0;
while (1) {
tp = fgets(lineBuffer, sizeof(lineBuffer), tfilep);
if (tracking)
if (lineBuffer[0] == '>') {
if (inRightCell) {
- /* no addresses for cell */
fclose(tfilep);
fclose(bestp);
- return -6;
+ return(foundCell ? 0 : -6);
}
/* trim off at white space or '#' chars */