To test the Dionaea SMB Share Enumeration function, I used smbclient connect to Dionaea with
smbclient -L \\localhost
Error happened all the time as the message error has showed the empty sharing list.
And, if make the put file connect with smbclient, it showed the file transfer successfully.
The solution for this problem is simple. I found that the smbclient version in my Ubuntu is 2:3.4.0-3ubuntu5.0. When I upgrade it to 2:3.4.0-3ubuntu5.6, the problem solved. Now i manage get the Share Enumeration correct which provided in handle_NetShareEnum.