spreed-webrtc: fix uuid fuckup

ref: https://github.com/satori/go.uuid/issues/66
This commit is contained in:
Enno Boland 2018-01-15 14:33:11 +01:00
parent 460f7743ea
commit 381618b079
No known key found for this signature in database
GPG Key ID: D09964719BDE9971
2 changed files with 13 additions and 1 deletions

View File

@ -0,0 +1,12 @@
--- ./go/channelling/server/users.go.orig 2018-01-15 14:20:19.997694620 +0100
+++ ./go/channelling/server/users.go 2018-01-15 14:20:41.151902026 +0100
@@ -456,7 +456,8 @@ func (users *Users) Post(request *http.R
}
// Do this before session validation to avoid timing information.
- userid := fmt.Sprintf("%s@%s", uuid.NewV4().String(), users.realm)
+ tmpUuid, _ := uuid.NewV4()
+ userid := fmt.Sprintf("%s@%s", tmpUuid.String(), users.realm)
// Make sure Sid matches session and is valid.
if !users.ValidateSession(snr.Id, snr.Sid) {

View File

@ -1,7 +1,7 @@
# Template file for 'spreed-webrtc' # Template file for 'spreed-webrtc'
pkgname=spreed-webrtc pkgname=spreed-webrtc
version=0.29.7 version=0.29.7
revision=2 revision=3
build_style=go build_style=go
go_import_path="github.com/strukturag/spreed-webrtc" go_import_path="github.com/strukturag/spreed-webrtc"
go_package="${go_import_path}/src/app/spreed-webrtc-server" go_package="${go_import_path}/src/app/spreed-webrtc-server"