summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/libsmb/namequery.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c
index 6550d55206..6e0bf3375e 100644
--- a/source3/libsmb/namequery.c
+++ b/source3/libsmb/namequery.c
@@ -298,7 +298,7 @@ struct in_addr *name_query(int fd,const char *name,int name_type,
dbgtext( "Unsupported request error.\n" );
break;
case 0x05:
- dbgtext( "Refused error.\n" );
+ dbgtext( "Query refused error.\n" );
break;
default:
dbgtext( "Unrecognized error code.\n" );
@@ -348,6 +348,13 @@ struct in_addr *name_query(int fd,const char *name,int name_type,
}
}
+ /* Reach here if we've timed out waiting for replies.. */
+ if( !bcast && !found )
+ {
+ /* Timed out wating for WINS server to respond. Mark it dead. */
+ wins_srv_died( to_ip );
+ }
+
return ip_list;
}