Print this page
3910 t_look(3NSL) should never return T_ERROR

@@ -21,10 +21,11 @@
 
 /*
  * Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.
  * Copyright (c) 2012 by Delphix. All rights reserved.
  * Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
+ * Copyright 2014 Gary Mills
  */
 
 
 /*
  * nfs_tbind.c, common part for nfsd and lockd.

@@ -1587,13 +1588,12 @@
                         if (is_listen_fd_index(conn_index))
                                 break;
                         else
                                 goto fdclose;
 
-                case T_ERROR:
                 default:
-                        if (event == T_ERROR || t_errno == TSYSERR) {
+                        if (t_errno == TSYSERR) {
                                 if ((errorstr = strerror(errno)) == NULL) {
                                         (void) sprintf(buf,
                                             "Unknown error num %d", errno);
                                         errorstr = (const char *) buf;
                                 }