bugfix in smb_err_msg
authorLuke Leighton <lkcl@samba.org>
Wed, 9 Dec 1998 18:59:12 +0000 (18:59 +0000)
committerLuke Leighton <lkcl@samba.org>
Wed, 9 Dec 1998 18:59:12 +0000 (18:59 +0000)
source/libsmb/smberr.c

index 4fd9165c69b4aaab7e9456a3e20b4a66123b2c91..85827dde2866ec977fcbf0b0da71a636abe7d4c0 100644 (file)
@@ -176,11 +176,10 @@ char *smb_err_msg(uint8 class, uint32 num)
                                        }
                                }
                        }
-
+                       slprintf(ret, sizeof(ret) - 1, "%s - %d",err_classes[i].class, num);
+                       return ret;
                }
 
-               slprintf(ret, sizeof(ret) - 1, "%s - %d",err_classes[i].class, num);
-               return ret;
        }
        slprintf(ret, sizeof(ret) - 1, "Error: Unknown error (%d,%d)",class,num);
        return(ret);