summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/smberr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/libsmb/smberr.c b/source3/libsmb/smberr.c
index 4fd9165c69..85827dde28 100644
--- a/source3/libsmb/smberr.c
+++ b/source3/libsmb/smberr.c
@@ -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);