Fix crash #174 by duplicating curl handle

Wrap libcurl to bypass lack of covariance support
This commit is contained in:
Brendan Le Glaunec
2018-03-13 10:24:25 +01:00
committed by Brendan LE GLAUNEC
parent 6392dcd9a0
commit bcc8099f91
4 changed files with 25 additions and 4 deletions
+4
View File
@@ -31,6 +31,10 @@ func (m *CurlerMock) Getinfo(info curl.CurlInfo) (interface{}, error) {
return args.Int(0), args.Error(1)
}
func (m *CurlerMock) Duphandle() Curler {
return m
}
func TestAttackCredentials(t *testing.T) {
validStream1 := Stream{
Device: "fakeDevice",